Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

Conditional Class Reference

A conditional variable sychcronization object for one to one and one to many signal and control events between processes. conditional. More...

#include <thread.h>

Inheritance diagram for Conditional::

Mutex List of all members.

Public Methods

 Conditional ()
 Create an instance of a conditional. More...

virtual ~Conditional ()
 Destroy the conditional. More...

void Signal (bool broadcast)
 Signal a conditional object and a waiting threads. More...

void Wait (timeout_t timer=0)
 Wait to be signaled from another thread. More...


Detailed Description

A conditional variable sychcronization object for one to one and one to many signal and control events between processes. conditional.

Conditional variables may wait for and receive signals to notify when to resume or perform operations. Multiple waiting threads may be woken with a broadcast signal.

Author:
David Sugar


Constructor & Destructor Documentation

Conditional::Conditional  
 

Create an instance of a conditional.

virtual Conditional::~Conditional   [virtual]
 

Destroy the conditional.


Member Function Documentation

void Conditional::Signal bool   broadcast
 

Signal a conditional object and a waiting threads.

Parameters:
broadcast   this signal to all waiting threads if true.

void Conditional::Wait timeout_t   timer = 0
 

Wait to be signaled from another thread.


The documentation for this class was generated from the following file:
Generated at Tue Nov 20 12:34:34 2001 for CommonC++ by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001