OFMutex Class Reference

#import <OFThread.h>

Inheritance diagram for OFMutex:
OFObject

List of all members.

Public Member Functions

(id) - lock
(BOOL) - tryLock
(id) - unlock

Static Public Member Functions

(id) + mutex

Protected Attributes

of_mutex_t mutex

Detailed Description

A class for creating mutual exclusions.


Member Function Documentation

- (id) 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
- (id) unlock  

Unlocks the mutex.


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

Generated on Mon Feb 1 19:19:40 2010 for ObjFW by  doxygen 1.6.1