Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- type WaitOnToken = MVar ()
- type ThreadWaitQueue = MVar WaitOnToken
- createWaitQueue :: IO ThreadWaitQueue
- getQueueTicket :: ThreadWaitQueue -> IO WaitOnToken
- enterWaitQueueWithTicket :: WaitOnToken -> IO ()
- enterWaitQueue :: ThreadWaitQueue -> IO ()
- openWaitQueue :: ThreadWaitQueue -> IO ()
- _openIfNeeded :: WaitOnToken -> IO ()
- recloseWaitQueue :: ThreadWaitQueue -> IO ()
- openAndRecloseWaitQueue :: ThreadWaitQueue -> IO ()
Documentation
type WaitOnToken = MVar () Source
type ThreadWaitQueue = MVar WaitOnToken Source
enterWaitQueueWithTicket :: WaitOnToken -> IO () Source
enterWaitQueue :: ThreadWaitQueue -> IO () Source
openWaitQueue :: ThreadWaitQueue -> IO () Source
Open the queue. If the queue is already opened, nothing happens.
_openIfNeeded :: WaitOnToken -> IO () Source
recloseWaitQueue :: ThreadWaitQueue -> IO () Source
openAndRecloseWaitQueue :: ThreadWaitQueue -> IO () Source
Atomic