DoneCondition Class Reference

Reliable wait condition to signal readiness. More...

Collaboration diagram for DoneCondition:
[legend]

List of all members.

Public Member Functions

void Done ()
 Sets status to done and wakes up another process.
void Done ()
 Sets status to done and wakes up another process.
void Wait ()
 Atomically waits for completion and then resets the done flag to false.
void Wait ()
 Atomically waits for completion and then resets the done flag to false.

Detailed Description

Reliable wait condition to signal readiness.

This has semantics almost identical to the regular wait conditions, except it will wake up only exactly one process, and that Wait() will terminate immediately if Done() was previously called.

This may be reused multiple times -- every time Wait() is called, the done flag is reset to false afterwards.

Definition at line 313 of file thread.h.


Member Function Documentation

void DoneCondition::Done (  )  [inline]

Sets status to done and wakes up another process.

Definition at line 337 of file thread.h.

References Mutex::Lock(), and Mutex::Unlock().

void DoneCondition::Done (  )  [inline]

Sets status to done and wakes up another process.

Definition at line 337 of file thread.h.

References Mutex::Lock(), and Mutex::Unlock().

void DoneCondition::Wait (  )  [inline]

Atomically waits for completion and then resets the done flag to false.

Definition at line 325 of file thread.h.

References Mutex::Lock(), and Mutex::Unlock().

void DoneCondition::Wait (  )  [inline]

Atomically waits for completion and then resets the done flag to false.

Definition at line 325 of file thread.h.

References Mutex::Lock(), and Mutex::Unlock().


The documentation for this class was generated from the following files:
Generated on Mon Jan 24 12:04:40 2011 for FASTlib by  doxygen 1.6.3