ObjFW
Public Member Functions | Static Public Member Functions | Protected Attributes
OFMutex Class Reference

A class for creating mutual exclusions. More...

#include <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 OFMutex::lock ( ) [virtual]

Locks the mutex.

id OFMutex::mutex ( ) [static, virtual]
Returns:
A new autoreleased mutex.
BOOL OFMutex::tryLock ( ) [virtual]

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 OFMutex::unlock ( ) [virtual]

Unlocks the mutex.


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