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

Public Member Functions | |
| FastMutex () | |
| Create a FastMutex. | |
| virtual | ~FastMutex () |
| Destroy a FastMutex. | |
| virtual void | acquire () |
| virtual void | release () |
| virtual bool | tryAcquire (unsigned long timeout) |
A FastMutex 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::FastMutex::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.
| Interrupted_Exception | never thrown |
Implements ZThread::Lockable.
| void ZThread::FastMutex::release | ( | ) | [virtual] |
Release exclusive access. No safety or state checks are performed.
Implements ZThread::Lockable.
| bool ZThread::FastMutex::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.
| timeout | unused |
| Interrupted_Exception | never thrown |
Implements ZThread::Lockable.
1.4.7