RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TEvent Class

TEvent represents an external event.

Pascal
TEvent = class(THandleObject);
C++
class TEvent : public THandleObject;

SyncObjs

Use TEvent to signal that an event has occurred or a state has been reached. 

In a multi-threaded application, use TEvent to allow one thread to signal to other threads that an event has occurred.  

The handle of a TEvent object can also be used to communicate with other processes, so that an application can coordinate the timing of events with other applications. For example, use the handle of a TEvent object to wait until another process is ready to transfer information. 

In a single-threaded application, use TEvent to coordinate between sections of code that respond to asynchronous events such as system events. 

 

TThread 

Waiting for a Task to Be Completed

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!