System.SyncObjs.TCountdownEvent.WaitFor

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

virtual System::Types::TWaitResult __fastcall WaitFor(unsigned Timeout = (unsigned)(0xffffffff))/* overload */;
inline System::Types::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.

Code Examples

See Also