Class TBrookLocker
Unit
Declaration
type TBrookLocker = class(TPersistent)
Description
Allows to lock other threads from accessing a block of code.
Hierarchy
- TObject
- TPersistent
- TBrookLocker
Overview
Methods
![]() |
constructor Create; virtual; |
![]() |
destructor Destroy; override; |
![]() |
procedure Lock; virtual; |
![]() |
procedure Unlock; virtual; |
![]() |
function TryLock: Boolean; virtual; |
Properties
![]() |
property Active: Boolean read FActive write SetActive stored IsActiveStored; |
Description
Methods
![]() |
constructor Create; virtual; |
Creates an instance of |
![]() |
destructor Destroy; override; |
Frees an instance of |
![]() |
procedure Lock; virtual; |
Locks all other threads. |
![]() |
procedure Unlock; virtual; |
Unlocks all other threads. |
![]() |
function TryLock: Boolean; virtual; |
Tries to lock all other threads. |
Properties
![]() |
property Active: Boolean read FActive write SetActive stored IsActiveStored; |
Activates the locker. (Default: |
Generated by PasDoc 0.16.0.