[Overview][Constants][Types][Classes][Index] |
Wait for the event to be set.
Source position: syncobjs.pp line 70
public function TEventObject.WaitFor( |
Timeout: Cardinal |
):TWaitResult; |
Timeout |
|
Maximum time to wait for the event to be set |
Reason for returning
WaitFor should be used in threads that should be notified when the event is set. When WaitFor is called, and the event is not set, the thread will be suspended. As soon as the event is set by some other thread (using SetEvent) or the timeout period (TimeOut) has expired, the WaitFor function returns. The return value depends on the condition that caused the WaitFor function to return.
The calling thread will wait indefinitely when the constant INFINITE is specified for the TimeOut parameter.
|
Set the event |
lazarus-ccr.sourceforge.net |