Skip to content

TSemaphore

Declaration

Source position: syncobjs.pp line 253

type

  TSemaphore = class(THandleObject)
    Fsem: TPosixSemaphore = sem_t;
  public
    constructor Create(aUseCOMWait: Boolean=False); overload;
    constructor Create(aAttributes: PSecurityAttributes; aInitial: Integer; 
                  aMaximum: Integer; const aName: string; 
                  aUseCOMWait: Boolean=False); overload;
    constructor Create(aAccess: Cardinal; aInherit: Boolean; 
                  const aName: string; aUseCOMWait: Boolean=False); overload;
    destructor Destroy;
    procedure Acquire;
    procedure Release; overload;
    function Release(aCount: Integer) : Integer; overload;
    function WaitFor : TWaitResult;
  end;

Methods

Member Visibility Description
Acquire public
Create public
Destroy public
Release public
WaitFor public
See all Methods

Fieldss

Member Visibility Description
Fsem default
See all Fieldss