System.SyncObjs.TCountdownEvent.WaitFor
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); }
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | public | System.SyncObjs.pas System.SyncObjs.hpp |
System.SyncObjs | TCountdownEvent |
Description
WaitFor bloque le thread en cours jusqu'à ce que l'événement soit signalé.
Si l'événement n'est pas défini, par l'appel de la méthode WaitFor, le thread en cours sera bloqué pendant la durée spécifiée par le paramètre Timeout
.