Skip to content

TEventObject

Event propagation object.

Declaration

Source position: syncobjs.pp line 157

type

  TEventObject = class(THandleObject)
  public
    constructor Create; overload;
    procedure ResetEvent;
    procedure SetEvent;
    property ManualReset: Boolean; {r}
  end;

Description

TEventObject encapsulates the BasicEvent implementation of the system unit in a class. The event can be used to notify other threads of a change in conditions. (in POSIX terms, this is a conditional variable). A thread that wishes to notify other threads creates an instance of TEventObject with a certain name, and posts events to it. Other threads that wish to be notified of these events should create their own instances of TEventObject with the same name, and wait for events to arrive.

Properties

Member Visibility Description
ManualReset read only public Should the event be reset manually.
See all Properties

Methods

Member Visibility Description
Create public Create a new event object.
ResetEvent public Reset the event.
SetEvent public Set the event.
See all Methods

See also

Name Description
TCriticalSection Critical section.