TThreadPersistent.LockCount

property LockCount: Integer; // Read-only; protected;

Description

LockCount represents the current nesting level of the threading lock. This is a counter shared by all running threads in the curent process.

The object is unlocked only when LockCount is 0 and only one thread can lock the object at the time. Call Lock to increase LockCount value and Unlock to decrease it.

See Also

Lock, Unlock