| Description | Hierarchy | Fields | Methods | Properties |
type unaObject = class(TObject)
Base class for all objects defined in this unit.
![]() |
constructor create(); |
![]() |
destructor Destroy(); override; |
![]() |
function acquire(ro: bool; timeout: tTimeout; fsn: bool = false): bool; overload; |
![]() |
class function acquireStatic(timeout: tTimeout): bool; overload; |
![]() |
function releaseRO(): bool; |
![]() |
function releaseWO(): bool; |
![]() |
class function releseStatic(): bool; |
![]() |
function release(): bool; |
![]() |
procedure acquire(ro: bool); overload; |
![]() |
class procedure acquireStatic(); overload; |
![]() |
procedure AfterConstruction(); override; |
![]() |
procedure BeforeDestruction(); override; |
![]() |
property destroying: bool read f_destroying; |
![]() |
property _classID: string read getClassID; |
![]() |
property _this: unaObject read getThis; |
![]() |
constructor create(); |
|
Creates an object. | |
![]() |
destructor Destroy(); override; |
![]() |
function acquire(ro: bool; timeout: tTimeout; fsn: bool = false): bool; overload; |
|
Exclusive acquire. False for "write-only" access acquire. Succeeds when thread acquires "write-only" lock. Parameters
ReturnsTrue if object was acquired (locked) then desired access. Make sure releseRO()/releaseWO() is called to unlock the object. | |
![]() |
class function acquireStatic(timeout: tTimeout): bool; overload; |
|
Static version of acquire(). Always uses WO access level. Parameters
| |
![]() |
function releaseRO(): bool; |
|
Releases the object after successfull RO acquisition. | |
![]() |
function releaseWO(): bool; |
|
Releases the object after successfull WO acquisition. | |
![]() |
class function releseStatic(): bool; |
|
Static version of releaseWO(). | |
![]() |
function release(): bool; |
|
Release either after successfull RO or WO acquire. | |
![]() |
procedure acquire(ro: bool); overload; |
|
Non-exclusive (unconditional) acquire. Always succeed. Do not forget to call releaseRO()/releaseWO(). Parameters
| |
![]() |
class procedure acquireStatic(); overload; |
|
Static version of unconditional acquire(). | |
![]() |
procedure AfterConstruction(); override; |
|
Makes sure "inherited" create() was called during object's creation. | |
![]() |
procedure BeforeDestruction(); override; |
|
Sets f_destroying to true. | |
![]() |
property destroying: bool read f_destroying; |
|
True when object is being destroyed. | |
![]() |
property _classID: string read getClassID; |
|
Returns string description of this instance. | |
![]() |
property _this: unaObject read getThis; |
|
Returns pointer to self (this instance of object). Useful is some cases where self will refer to method's owner object instead. | |
(c) 2012 Lake of Soft