System.SyncObjs.TCountdownEvent.WaitFor
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); }
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.SyncObjs.pas System.SyncObjs.hpp |
System.SyncObjs | TCountdownEvent |
Description
WaitFor blocks the current thread until the event is signaled.
If the event is not set, by calling the WaitFor method, the current thread will be blocked for the amount of time specified by the Timeout
parameter.