#include <FastRecursiveMutex.h>
Inheritance diagram for ZThread::FastRecursiveMutex:
Public Member Functions | |
FastRecursiveMutex () | |
Create a new FastRecursiveMutex. | |
virtual | ~FastRecursiveMutex () |
Destroy this FastRecursiveMutex. | |
virtual void | acquire () |
virtual void | release () |
virtual bool | tryAcquire (unsigned long timeout) |
A FastRecursiveMutex has the useful property of not being interruptable; that is to say that acquire() and tryAcquire() will not throw Interrupted_Exceptions.
Scheduling is left to the operating systems and may vary.
Error Checking
No error checking is performed, this means there is the potential for deadlock.
void ZThread::FastRecursiveMutex::acquire | ( | ) | [virtual] |
Acquire exclusive access to the mutex. The calling thread will block until the lock can be acquired. No safety or state checks are performed. The calling thread may acquire the mutex nore than once.
Interrupted_Exception | never thrown |
Implements ZThread::Lockable.
void ZThread::FastRecursiveMutex::release | ( | ) | [virtual] |
Release access. No safety or state checks are performed.
Implements ZThread::Lockable.
bool ZThread::FastRecursiveMutex::tryAcquire | ( | unsigned long | timeout | ) | [virtual] |
Try to acquire exclusive access to the mutex. The calling thread will block until the lock can be acquired. No safety or state checks are performed. The calling thread may acquire the mutex more than once.
timeout | unused |
Interrupted_Exception | never thrown |
Implements ZThread::Lockable.