ObjFW
Public Member Functions | Static Public Member Functions
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
 Locks the mutex.
(BOOL) - tryLock
 Tries to lock the mutex.
(void) - unlock
 Unlocks the mutex.

Static Public Member Functions

(id) + mutex
 Creates a new mutex.

Detailed Description

A class for creating mutual exclusions.


Member Function Documentation

+ (id) mutex

Creates a new mutex.

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

Tries to lock the mutex.

Returns:
A boolean whether the mutex could be acquired

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