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

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

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

Signals all threads to continue.

id OFCondition::condition ( ) [static, virtual]
Returns:
A new, autoreleased OFCondition
void OFCondition::signal ( ) [virtual]

Signals the next waiting thread to continue.

void OFCondition::wait ( ) [virtual]

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