A class for creating mutual exclusions. More...
#import <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) lock |
Locks the mutex.
+ (id) mutex |
- (BOOL) tryLock |
Tries to lock the mutex and returns a boolean whether the mutex could be acquired.
- (void) unlock |
Unlocks the mutex.