#include <POSIX_FastRecursiveMutex.h>
Inheritance diagram for ZThread::FastRecursiveMutex::
Public Methods | |
FastRecursiveMutex () throw (Synchronization_Exception) | |
virtual | ~FastRecursiveMutex () throw () |
virtual void | acquire () throw (Synchronization_Exception) |
virtual void | release () throw (Synchronization_Exception) |
virtual bool | tryAcquire (unsigned long) throw (Synchronization_Exception) |
This particular implementation performs fewer safety checks. Like the FastMutex implementation, any waiting caused by an acquire() request is not interruptable. This is so that the mutex can have the fastest response time for a time critical application while still having a good degree of reliability.
|
Create a new FastRecursiveMutex |
|
Destroy this Mutex |
|
Acquire the lock on this Mutex, if the lock is already held by the calling thread, then the Mutex returns immediately
Reimplemented from ZThread::Lockable. |
|
Release the lock on this Mutex. This should be done for each time the Mutex was acquired() by the calling thread
Reimplemented from ZThread::Lockable. |
|
The timeout function is not implemented on a FastRecursiveMutex This is because this Mutex is generally used when need to be locked and unlocked rather quickly, and where the lock held only for short amounts of time
Reimplemented from ZThread::Lockable. |