#include <cascade/interthread/CascadeMutex.h>
Inheritance diagram for CascadeMutex:
Public Member Functions | |
CascadeMutex () | |
virtual | ~CascadeMutex () |
void | Lock () |
bool | TryLock () |
TryLock(), Unlock(). | |
void | Unlock () |
CascadeMutex provides a lightweight mutex that provides thread locking and is easy to use.
|
the default constructor - lightweight This default constructor is lightweight. |
|
destructor The destructor. |
|
locks the mutex |
|
tries to lock the mutex TryLock() tries to lock the mutex, doing so and returning true if the mutex was locked. TryLock() never blocks - if the mutex is currently locked by another thread TryLock() returns false without blocking and without locking the mutex.
|
|
unlocks the mutex Call Unlock() to unlock the mutex. Be sure to call Unlock() for each call to Lock() (or successful TryLock()). |