|
C/C++ Reference
|
A mutual exclusion class. More...
#include <ThreadLib.h>
Public Member Functions | |
| ThreadMutex () | |
| Create a mutex. | |
| ~ThreadMutex () | |
| Destroy a mutex. | |
| void | set () |
| Lock the mutex. | |
| void | release () |
| Release the mutex. | |
| bool | isOwner () |
| Returns true if the mutex is locked and the current thread is the owner. | |
A mutual exclusion class.
| ThreadMutex::ThreadMutex | ( | ) |
Create a mutex.
| ThreadMutex::~ThreadMutex | ( | ) |
Destroy a mutex.
| void ThreadMutex::release | ( | ) |
Release the mutex.
| void ThreadMutex::set | ( | ) |
Lock the mutex.