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

at::Conditional Class Reference

#include <at_thread.h>

Inheritance diagram for at::Conditional:

Inheritance graph
[legend]
Collaboration diagram for at::Conditional:

Collaboration graph
[legend]
List of all members.

Public Methods

 Conditional (Mutex &i_mutex)
 ~Conditional ()
void Wait ()
bool Wait (const TimeInterval &i_time)
bool Wait (const TimeStamp &i_time)
void Post ()
void PostAll ()

Detailed Description

Conditional implements the "Conditional Variable" semantics of posix pthreads.

Conditional has the functionality of a mutex *and* the ability to notify a number of threads on a change "or wake the all up" functionality. Threads waiting are not scheduled to run, while a mutex is usually employed as a spin-lock.


Constructor & Destructor Documentation

at::Conditional::Conditional Mutex   i_mutex
 

Conditional constructs a "Conditional Variable" access device.

at::Conditional::~Conditional  
 


Member Function Documentation

void at::Conditional::Post  
 

Post a notification to a single waiting thread.

void at::Conditional::PostAll  
 

Post a notification to akk waiting threads.

bool at::Conditional::Wait const TimeStamp   i_time
 

Wait will wait until another thread "notifies" (the thread calling Wait()). The time i_time is absolute.

Returns:
true if the condition was signalled, false if it timed out

bool at::Conditional::Wait const TimeInterval   i_time
 

Wait will wait until another thread "notifies" (the thread calling Wait()). The time i_time is relative to now, however.

Returns:
true if the condition was signalled, false if it timed out

void at::Conditional::Wait  
 

Wait will wait until another thread "notifies" this thread (the thread calling Wait()).

Returns:
nothing


The documentation for this class was generated from the following files:

Generated for Austria by doxygen and MakeXS at Sun Oct 24 17:35:34 PDT 2004