ObjFW
|
A class for creating mutual exclusions. More...
#include <OFThread.h>
Public Member Functions | |
void | lock () |
BOOL | tryLock () |
void | unlock () |
Static Public Member Functions | |
id | mutex () |
Protected Attributes | |
of_mutex_t | mutex |
BOOL | initialized |
A class for creating mutual exclusions.
void OFMutex::lock | ( | ) | [virtual] |
Locks the mutex.
id OFMutex::mutex | ( | ) | [static, virtual] |
BOOL OFMutex::tryLock | ( | ) | [virtual] |
Tries to lock the mutex and returns a boolean whether the mutex could be acquired.
void OFMutex::unlock | ( | ) | [virtual] |
Unlocks the mutex.