Skip to content

TThreadList.LockList

Locks the list for exclusive access.

Declaration

Source position: classesh.inc line 653

public 
function TThreadList.LockList : TList;

Description

LockList locks the thread list for exclusive access. The return value for the method is the internal TList instance with pointers to the TThread instances for the thread list. Locklist uses an internal critical section, so all rules for multiple locking of critical sections apply to locklist/unlocklist as well.

See also

Name Description
Clear Removes all elements from the list.
Add Adds an element to the list.
Remove Removes an item from the list.
UnlockList Unlocks the list after it was locked.