OpenRTM-aist  1.2.1
公開メンバ関数 | 全メンバ一覧
coil::Condition< M > クラステンプレート

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

#include <Condition.h>

公開メンバ関数

 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

コンストラクタ

コンストラクタ。

参照元 coil::Condition< Mutex >::wait().

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: 失敗

このクラス詳解は次のファイルから抽出されました: