Class TBrookLocker

Unit

Declaration

type TBrookLocker = class(TPersistent)

Description

Allows to lock other threads from accessing a block of code.

Hierarchy

Overview

Methods

Public constructor Create; virtual;
Public destructor Destroy; override;
Public procedure Lock; virtual;
Public procedure Unlock; virtual;
Public function TryLock: Boolean; virtual;

Properties

Published property Active: Boolean read FActive write SetActive stored IsActiveStored;

Description

Methods

Public constructor Create; virtual;

Creates an instance of TBrookLocker.

Public destructor Destroy; override;

Frees an instance of TBrookLocker.

Public procedure Lock; virtual;

Locks all other threads.

Public procedure Unlock; virtual;

Unlocks all other threads.

Public function TryLock: Boolean; virtual;

Tries to lock all other threads.

Properties

Published property Active: Boolean read FActive write SetActive stored IsActiveStored;

Activates the locker. (Default: True)


Generated by PasDoc 0.16.0.