Portable recursive exclusive lock. More...
#include <thread.h>


Public Member Functions | |
| unsigned | getLocking (void) |
| Get the number of recursive locking levels. | |
| unsigned | getWaiting (void) |
| Get the number of threads waiting on lock. | |
| void | lock (void) |
| Acquire or increase locking. | |
| void | release (void) |
| Release or decrease locking. | |
| rexlock () | |
| Create rexlock. | |
Static Public Member Functions | |
| static void | lock (rexlock &rex) |
| Convenience method to lock a recursive lock. | |
| static void | release (rexlock &rex) |
| Convenience method to unlock a recursive lock. | |
Portable recursive exclusive lock.
This class is built from the conditional and hence does not require support for non-standard and platform specific extensions to pthread mutex to support recrusive style mutex locking. The exclusive protocol is implimented to support exclusive_lock referencing.
Definition at line 468 of file thread.h.
| unsigned ucc::rexlock::getLocking | ( | void | ) |
Get the number of recursive locking levels.
| unsigned ucc::rexlock::getWaiting | ( | void | ) |
Get the number of threads waiting on lock.
| static void ucc::rexlock::lock | ( | rexlock & | rex | ) | [inline, static] |
| static void ucc::rexlock::release | ( | rexlock & | rex | ) | [inline, static] |
1.6.3