Sign in Join
FPDoc Onlineexperiment

TEventObject class

In unit SyncObjs

Event propagation object.

Declaration

pascal
TEventObject = class(THandleObject)

Inheritance

  1. TEventObject
  2. THandleObject
  3. TSynchroObject
  4. TObject

Descends from it: TSimpleEvent

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.

See also

Properties

ManualResetpublicShould the event be reset manually.

Methods

CreatepublicCreate a new event object.
ResetEventpublicReset the event.
SetEventpublicSet the event.

Inherited

From THandleObject (4)

Destroy Handle LastError WaitFor

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.