SigCX::Threads::Condition Class Reference
[Threading]

Condition class. More...

#include <thread.h>

List of all members.

Public Member Functions

 Condition ()
 ~Condition ()
void signal ()
void broadcast ()
void wait (Mutex &m)
bool wait (Mutex &m, const TimeVal &tmout)
bool wait (Mutex &m, unsigned long tmout)


Detailed Description

Condition class.

A class representing a condition that can be waited upon.


Constructor & Destructor Documentation

SigCX::Threads::Condition::Condition (  ) 

Constructor.

SigCX::Threads::Condition::~Condition (  ) 

Destructor.


Member Function Documentation

void SigCX::Threads::Condition::signal (  ) 

Signal condition.

Restarts exactly one thread hung on condition.

void SigCX::Threads::Condition::broadcast (  ) 

Broadcast condition.

Restarts all threads waiting on condition.

void SigCX::Threads::Condition::wait ( Mutex m  ) 

Wait for condition.

Unlocks a mutex while waiting on a condition, then reaquires lock.

Parameters:
m Mutex to act upon.

bool SigCX::Threads::Condition::wait ( Mutex m,
const TimeVal tmout 
)

Timed wait.

Unlocks a mutex while waiting on a condition, then reaquires lock with a fixed maximum duration.

Parameters:
m Mutex to act upon.
tmout The maximum time interval to wait for the condition.
Returns:
true if woken up in time.

bool SigCX::Threads::Condition::wait ( Mutex m,
unsigned long  tmout 
) [inline]

Timed wait.

Unlocks a mutex while waiting on a condition, then reaquires lock with a fixed maximum duration.

Parameters:
m Mutex to act upon.
tmout The maximum time interval in microseconds to wait for the condition.
Returns:
true if woken up in time.


The documentation for this class was generated from the following file:
Generated on Mon Sep 10 06:27:37 2007 for SigCX - SigC++ Extras by  doxygen 1.5.3