#include <POSIX_FastMutex.h>
Inheritance diagram for ZThread::FastMutex::

Public Methods | |
| FastMutex () throw (Synchronization_Exception) | |
| virtual | ~FastMutex () throw () |
| virtual void | acquire () throw (Synchronization_Exception) |
| virtual void | release () throw (Synchronization_Exception) |
| virtual bool | tryAcquire (unsigned long) throw (Synchronization_Exception) |
There are two important differences from the other Mutex classes. The first and most important one is speed. It operates about 20 - 25 faster on average than the normal Mutex.
|
|
Create a new FastMutex. No safety or state checks are performed.
|
|
|
Destroy a FastMutex. No safety or state checks are performed. |
|
|
Acquire an exclusive lock. No safety or state checks are performed. This is not a recursive function.
Reimplemented from ZThread::Lockable. |
|
|
Release an exclusive lock. No safety or state checks are performed. The caller should have already acquired the lock, and release it only once.
Reimplemented from ZThread::Lockable. |
|
|
Not implemented
Reimplemented from ZThread::Lockable. |
1.2.8 written by Dimitri van Heesch,
© 1997-2001