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 | タイムアウトが超過し何もシグナルが来なかった場合、配列中のシグナルオブジェクトのインデックスを返す代わりに関数が返す特別な値。 |
参照
- Class WaitHandle
- Namespace System::Threading
- Library Aspose.Page for C++