threadmm::cthreads::condition Class Reference
[Cthreads backend classes]

#include <threadmm/condition.hh>

List of all members.


Detailed Description

Condition variable implementation.

See also:
threadmm::basic_condition


Public Member Functions

 condition (bool shared=false)
virtual ~condition ()
bool shared () const
void signal ()
void broadcast ()
template<typename Mutex>
bool wait (Mutex &m, struct timespec *t=0)


Constructor & Destructor Documentation

threadmm::cthreads::condition::condition bool  shared = false  ) 
 

Construct a condition variable.

Parameters:
shared Ignored.

threadmm::cthreads::condition::~condition  )  [virtual]
 

Free a conditon variable.


Member Function Documentation

void threadmm::cthreads::condition::broadcast  ) 
 

Wake up all threads waiting for the condition.

bool threadmm::cthreads::condition::shared  )  const [inline]
 

Whether it's shared between processes.

Returns:
Always false

void threadmm::cthreads::condition::signal  ) 
 

Wake up exactly one thread waiting for the condition.

template<typename Mutex>
bool threadmm::cthreads::condition::wait Mutex &  m,
struct timespec *  t = 0
[inline]
 

Wait for the condition variable.

Parameters:
m The mutex to entry free, and lock on exit.
t Possible time to wait.


The documentation for this class was generated from the following file:
Top of page
Last update Tue Nov 9 12:40:51 2004
Christian Holm
Created by DoxyGen 1.3.9.1