Public Member Functions | Static Public Member Functions | Protected Attributes

OFMutex Class Reference

A class for creating mutual exclusions. More...

#import <OFThread.h>

Inheritance diagram for OFMutex:
OFObject <OFObject> OFCondition

List of all members.

Public Member Functions

(void) - lock
(BOOL) - tryLock
(void) - unlock

Static Public Member Functions

(id) + mutex

Protected Attributes

of_mutex_t mutex
BOOL initialized

Detailed Description

A class for creating mutual exclusions.


Member Function Documentation

- (void) lock  

Locks the mutex.

+ (id) mutex  
Returns:
A new autoreleased mutex.
- (BOOL) tryLock  

Tries to lock the mutex and returns a boolean whether the mutex could be acquired.

Returns:
A boolean whether the mutex could be acquired
- (void) unlock  

Unlocks the mutex.


The documentation for this class was generated from the following files:
 All Classes Functions Variables