Sign in Join
FPDoc Onlineexperiment

THandleObject class

In unit SyncObjs

Class encapsulating an operating system handle.

Declaration

pascal
THandleObject = class abstract(TSynchroObject)

Inheritance

  1. THandleObject
  2. TSynchroObject
  3. TObject

Descends from it: TEventObject TMutex TSemaphore

Description

THandleObject is an abstract parent class for synchronization classes that need to store an operating system handle. It introduces a property Handle which can be used to store the operating system handle. The handle is in no way manipulated by THandleObject, only storage is provided.

Do not create an instance of THandleObject. It is an abstract class. Recent versions of FPC actually declare the class as abstract.

See also

Properties

HandlepublicHandle for this object.
LastErrorpublicLast operating system error.

Methods

CreatepublicTObject Constructor.
DestroypublicFree the instance.
WaitForpublic

Fields

FHandleprotected
FLastErrorprotected

Inherited

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.