クラス テンプレート 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 ( long  second,
long  nano_second = 0 
) [inline]

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

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

引数:
second 秒単位の時間
nano_second ナノ秒単位の時間
戻り値:
true: 成功, false: 失敗
template<class M>
bool coil::Condition< M >::wait (  )  [inline]

スレッド実行の待機

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

戻り値:
true: 成功, false: 失敗
OpenRTMに対してThu May 24 23:25:19 2012に生成されました。  doxygen 1.6.3