#include <FastMutex.h>
Inheritance diagram for FastMutex:
Public Methods | |
FastMutex () | |
Create a new FastMutex. | |
virtual | ~FastMutex () throw () |
Destroy a new FastMutex. | |
virtual void | acquire () |
virtual void | release () |
virtual bool | tryAcquire (unsigned long timeout) |
Typically, a FastMutex 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.
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. |