OpenRTM-aist  1.2.1
Public Member Functions | List of all members
coil::Condition< M > Class Template Reference

Condition template class. More...

#include <Condition.h>

Public Member Functions

 Condition (M &mutex)
 Constructor. More...
 
 ~Condition ()
 Destructor. More...
 
void signal ()
 Resume of the thread practice. More...
 
void broadcast ()
 Resume of all the thread practice. More...
 
bool wait ()
 Wait of the thread practice. More...
 
bool wait (long second, long nano_second=0)
 Thread practice wait of set time. More...
 

Detailed Description

template<class M>
class coil::Condition< M >

Condition template class.

Constructor & Destructor Documentation

template<class M>
coil::Condition< M >::Condition ( M &  mutex)
inline

Constructor.

Constructor

Referenced by coil::Condition< Mutex >::wait().

template<class M>
coil::Condition< M >::~Condition ( )
inline

Destructor.

Destructor

Member Function Documentation

template<class M>
void coil::Condition< M >::broadcast ( )
inline

Resume of all the thread practice.

Let all waiting thread practice resume.

template<class M>
void coil::Condition< M >::signal ( )
inline

Resume of the thread practice.

Let the practice of a waiting thread resume.

template<class M>
bool coil::Condition< M >::wait ( )
inline

Wait of the thread practice.

Stop the practice of the thread till a condition variable is transmitted.

Returns
true: successful, false: failed
template<class M>
bool coil::Condition< M >::wait ( long  second,
long  nano_second = 0 
)
inline

Thread practice wait of set time.

In set time, stop the practice of the thread.

Parameters
secondTime of the seconds.
nano_secondtime of the nanoseconds.
Returns
true: successful, false: failed

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