LLVM API Documentation
Platform agnostic Mutex class. More...
|MutexImpl (bool recursive=true)|
|Default Constructor. |
|Unconditionally acquire the lock. |
|Unconditionally release the lock. |
|Try to acquire the lock. |
Initializes the lock but doesn't acquire it. if
recursive is set to false, the lock will not be recursive which makes it cheaper but also more likely to deadlock (same thread can't acquire more than once).
Unconditionally acquire the lock.
Attempts to unconditionally acquire the lock. If the lock is held by another thread, this method will wait until it can acquire the lock.
Unconditionally release the lock.
Attempts to release the lock. If the lock is held by the current thread, the lock is released allowing other threads to acquire the lock.
Try to acquire the lock.
Attempts to acquire the lock without blocking. If the lock is not available, this function returns false quickly (without blocking). If the lock is available, it is acquired.