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;