help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'System' (#rtl)

RTLeventWaitFor

Wait for an event.

Declaration

Source position: line 0

procedure RTLeventWaitFor(

  state: PRTLEvent

);

procedure RTLeventWaitFor(

  state: PRTLEvent;

  timeout: LongInt

);

Description

RTLeventWaitFor suspends the thread till the event occurs. The event will occur when another thread calls RTLEventSetEvent on State.

By default, the thread will be suspended indefinitely. However, if TimeOut is specified, then the thread will resume after timeout milliseconds have elapsed.

See also

RTLEventCreate

  

Create a new RTL event

RTLEventDestroy

  

Destroy a RTL Event

RTLEventSetEvent

  

Notify threads of the event.

RTLEventWaitFor

  

Wait for an event.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505