uni-reactor-2.2.1.0: Reactors for the uniform workbench
Reactor.MSem
Description
This is a much simpler reimplementation of Einar's old Mutex semaphores. This is a lock which can be required by a thread which is already holding it.
See also TSem.
data MSem Source
Instances
newMSem :: IO MSemSource
synchronizeWithChoice :: MSem -> (Bool -> IO a) -> IO aSource