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
:: Int | Number of microseconds to wait. |
-> Fence | |
-> IO Bool |
|
Waits for a fence to signal.
IMPORTANT: this is not interruptible by asynchronous exceptions.
isFenceSignalled :: Fence -> IO Bool Source
Checks if a fence has been signalled.
isFenceSignalled = waitFence 0