ContentsIndex
Network.GnuTLS.RefCount
Synopsis
data RefCount
newRefCount :: IO () -> IO RefCount
allocRef :: RefCount -> IO ()
freeRef :: RefCount -> IO ()
addRefFinalizer :: RefCount -> IO () -> IO ()
Documentation
data RefCount
A simple reference count with a list of finalizers.
newRefCount :: IO () -> IO RefCount
Create a new reference count with one reference and the suplied action as the initial finalizer.
allocRef :: RefCount -> IO ()
Allocate an additional reference to the RefCount.
freeRef :: RefCount -> IO ()
Free a reference to the RefCount. If the number of references goes down to zero all the associated finalizers are fired. The RefCount is left in unusable state when all the references have been deleted.
addRefFinalizer :: RefCount -> IO () -> IO ()
Associate an additional finalizer with the RefCount.
Produced by Haddock version 0.8