LRAUV  revA
ThreadCondition Class Reference

A simple pthread thread condition wrapper. More...

#include <Mutex.h>

Collaboration diagram for ThreadCondition:

Public Member Functions

 ThreadCondition (Mutex &mutex)
 
int wait ()
 
int timedWait (const Timespan &waitFor)
 
int signal ()
 
int broadcast ()
 

Private Attributes

pthread_cond_t condition_
 
Mutexmutex_
 

Detailed Description

A simple pthread thread condition wrapper.

Constructor & Destructor Documentation

ThreadCondition::ThreadCondition ( Mutex mutex)

References condition_.

Member Function Documentation

int ThreadCondition::broadcast ( )

References condition_.

int ThreadCondition::signal ( )
int ThreadCondition::timedWait ( const Timespan waitFor)
int ThreadCondition::wait ( )

Member Data Documentation

pthread_cond_t ThreadCondition::condition_
private
Mutex& ThreadCondition::mutex_
private

Referenced by timedWait(), and wait().


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