OpenRTM  1.0.0
Public メソッド | すべてのメンバ一覧
クラス テンプレート coil::Condition< M >

Condition テンプレートクラス [詳細]

#include <Condition.h>

Public メソッド

 Condition (M &mutex)
 コンストラクタ [詳細]
 
 ~Condition ()
 デストラクタ [詳細]
 
void signal ()
 スレッド実行の再開 [詳細]
 
void broadcast ()
 全スレッド実行の再開 [詳細]
 
bool wait ()
 スレッド実行の待機 [詳細]
 
bool wait (long second, long nano_second=0)
 設定時間のスレッド実行待機 [詳細]
 

説明

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

Condition テンプレートクラス

コンストラクタとデストラクタ

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

コンストラクタ

コンストラクタ。

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

デストラクタ

デストラクタ。

関数

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

全スレッド実行の再開

待機している全てのスレッド実行を再開させる。

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

スレッド実行の再開

待機しているスレッド実行を再開させる。

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

スレッド実行の待機

条件変数が送信されるまでスレッドの実行を停止する。

戻り値
true: 成功, false: 失敗
template<class M>
bool coil::Condition< M >::wait ( long  second,
long  nano_second = 0 
)
inline

設定時間のスレッド実行待機

設定された時間、スレッドの実行を停止する。

引数
second秒単位の時間
nano_secondナノ秒単位の時間
戻り値
true: 成功, false: 失敗