From Appmethod Libraries
Jump to: navigation, search


Object Pascal

TEvent = class(THandleObject)


class PASCALIMPLEMENTATION TEvent : public THandleObject


Type Visibility Source Unit Parent
class public
System.SyncObjs System.SyncObjs


TEvent represents an external event.

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.

See Also