#include <CheckedMutex.h>
Inheritance diagram for ZThread::CheckedMutex::
Public Methods | |
CheckedMutex () throw (Synchronization_Exception) | |
virtual | ~CheckedMutex () throw () |
virtual void | acquire () throw (Synchronization_Exception) |
virtual bool | tryAcquire (unsigned long) throw (Synchronization_Exception) |
virtual void | release () throw (Synchronization_Exception) |
Each method is an interruption point Each method will throw a meaningful exception
You should carefully handle exceptions thrown by this mutex.
|
Create a new CheckedMutex.
|
|
Destroy this Mutex |
|
Lock the mutex and prevent re-entrance on the protected block of code. Calling thread is blocked until the Mutex is released by the thread currently holding its lock
Reimplemented from ZThread::Lockable. |
|
Unlock the mutex and prevent re-entrance on the protected block of code see Loackable::release()
Reimplemented from ZThread::Lockable. |
|
Lock the mutex and prevent re-entrance on the protected block of code. If the given amount of time expires or the mutex is locked this function returns see Loackable::tryAcquire()
Reimplemented from ZThread::Lockable. |