Skip to content

THandleObject

Class encapsulating an operating system handle.

Declaration

Source position: syncobjs.pp line 136

type

  THandleObject = class(TSynchroObject)
  public
    constructor Create;
    destructor Destroy;
    function WaitFor : TWaitResult; overload;
    property Handle: TEventHandle; {r}
    property LastError: Integer; {r}
  end;

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.

Properties

Member Visibility Description
Handle read only public Handle for this object.
LastError read only public Last operating system error.
See all Properties

Methods

Member Visibility Description
Create public
Destroy public Free the instance.
WaitFor public
See all Methods

See also

Name Description
Handle Handle for this object.