coil::Condition< M > Class Template Reference

Condition template class. More...

#include <Condition.h>

List of all members.

Public Member Functions

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

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

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 ( long  second,
long  nano_second = 0 
) [inline]

Thread practice wait of set time.

In set time, stop the practice of the thread.

Parameters:
second Time of the seconds.
nano_second time of the nanoseconds.
Returns:
true: successful, false: failed
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
Generated on Fri Oct 28 18:31:17 2016 for OpenRTM-aist by  doxygen 1.6.3