System::Threading::Semaphore クラス

Semaphore class

Semaphore implementation. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

class Semaphore : public System::Threading::WaitHandle

メソッド

メソッド説明
Release()セマフォのロックを解除します。
Release(int)セマフォの複数のロックを解除します。
virtual Reset()セマフォを非シグナル状態に設定します。サポートされていません。
Semaphore(int, int)RTTI 情報。
Semaphore(int, int, const String&)名前付きセマフォを作成します。
Semaphore(int, int, const String&, bool&)名前付きセマフォを作成します。
virtual Set()セマフォをシグナル状態に設定します。サポートされていません。
WaitOne() overrideセマフォをロックします。必要に応じて無制限に待機します。
WaitOne(int) overrideセマフォをロックします。必要に応じて待機します。

フィールド

フィールド説明
static WaitTimeoutタイムアウトが超過し何もシグナルが来なかった場合、配列中のシグナルオブジェクトのインデックスを返す代わりに関数が返す特別な値。

参照