fesa-core  5.0.1
fesa::SharedConditionalVariable Class Reference

#include <SharedConditionalVariable.h>

Inheritance diagram for fesa::SharedConditionalVariable:
fesa::ConditionalVariable

Additional Inherited Members

- Public Member Functions inherited from fesa::ConditionalVariable
 ConditionalVariable ()
 constructor

Exceptions
FesaException

 
 ~ConditionalVariable ()
 destructor
 
void signal ()
 This method sends a signal to the conditional variable telling it that the thread can continue

Exceptions
FesaException.

 
void signalAll ()
 
void wait (const Mutex &mutex) const
 This method waits until a signal arrives stopping the thread. The mutex passed by argument has to be locked before invoking this method. More...
 
bool wait (const Mutex &mutex, std::time_t timeoutSec, std::time_t timeoutNanoSec) const
 This method waits until a signal arrives or the timeout was hit. The mutex passed by argument has to be locked before invoking this method. More...
 
- Protected Member Functions inherited from fesa::ConditionalVariable
 ConditionalVariable (bool initialize)
 
- Protected Attributes inherited from fesa::ConditionalVariable
pthread_cond_t condition_
 internal condition representation
 

Detailed Description

Conditional variable that can be shared between threads which don't have the same address space. The first thread shall create it by calling the static method map() with initialize set to true. Additional threads shall map it by calling the static method map() with initialize set to false.


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