Public Member Functions | Static Public Member Functions | Protected Attributes

OFCondition Class Reference

A class implementing a condition variable for thread synchronization. More...

#import <OFThread.h>

Inheritance diagram for OFCondition:
OFMutex OFObject <OFObject>

List of all members.

Public Member Functions

(void) - wait
(void) - signal
(void) - broadcast

Static Public Member Functions

(id) + condition

Protected Attributes

of_condition_t condition
BOOL cond_initialized

Detailed Description

A class implementing a condition variable for thread synchronization.


Member Function Documentation

- (void) broadcast  

Signals all threads to continue.

+ (id) condition  
Returns:
A new, autoreleased OFCondition
- (void) signal  

Signals the next waiting thread to continue.

- (void) wait  

Blocks the current thread until another thread calls -[signal] or -[broadcast].


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