#include <FastRecursiveMutex.h>
Inheritance diagram for FastRecursiveMutex:
Public Methods | |
FastRecursiveMutex () | |
Create a new FastRecursiveMutex. | |
virtual | ~FastRecursiveMutex () throw () |
Destroy this FastRecursiveMutex. | |
virtual void | acquire () |
virtual void | release () |
virtual bool | tryAcquire (unsigned long timeout=0) |
Typically, a FastRecursiveMutex is implemented using a spin lock. It should be reserved for synchronizing short sections of code.
No garuntees about the order threads are resumed in is made.
Error Checking
No error checking is performed, this means there is the potential for deadlock.
|
Acquire exclusive access. No safety or state checks are performed.
Implements Lockable. |
|
Release exclusive access. No safety or state checks are performed. This should not be called more times than the acquire() method was called.
Implements Lockable. |
|
Try to acquire exclusive access. No safety or state checks are performed. This function returns immediately regardless of the value of the timeout
Implements Lockable. |