System.SyncObjs.TCountdownEvent.WaitFor

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function WaitFor(Timeout: Cardinal = INFINITE): TWaitResult; overload; override;

C++

virtual TWaitResult __fastcall WaitFor(unsigned Timeout = (unsigned)(0xffffffff))/* overload */;
inline TWaitResult __fastcall  WaitFor(const System::Timespan::TTimeSpan &Timeout){ return TSynchroObject::WaitFor(Timeout); }

プロパティ

種類 可視性 ソース ユニット
function public
System.SyncObjs.pas
System.SyncObjs.hpp
System.SyncObjs TCountdownEvent


説明

WaitFor は、イベントがシグナルを受信するまで、現在のスレッドをブロックします。

イベントが設定されていない場合は、WaitFor メソッドを呼び出すと、現在のスレッドが Timeout パラメータで指定された時間の間、ブロックされます。

Code Examples

関連項目