Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synchronization primitives.
This module implements fence synchronization objects. They can be used to check when a GPU operation has been done.
At the moment, the only place where these objects are useful in Caramia is unsynchronized buffer mapping.
Operations
:: MonadIO m | |
=> Int | Number of microseconds to wait. |
-> Fence | |
-> m Bool |
|
Waits for a fence to signal.
IMPORTANT: this is not interruptible by asynchronous exceptions.
isFenceSignalled :: MonadIO m => Fence -> m Bool Source
Checks if a fence has been signalled.
isFenceSignalled = waitFence 0