[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Thread-safe list object.
Source position: classesh.inc line 640
type TThreadList = class |
||
public |
||
constructor Create; |
|
Creates a new thread-safe list. |
destructor Destroy; override; |
|
Destroys the list instance. |
procedure Add(); |
|
Adds an element to the list. |
procedure Clear; |
|
Removes all elements from the list. |
function LockList; |
|
Locks the list for exclusive access. |
procedure Remove(); |
|
Removes an item from the list. |
procedure UnlockList; |
|
Unlocks the list after it was locked. |
property Duplicates: TDuplicates; [rw] |
|
Describes what to do with duplicates. |
end; |
|
Thread-safe list object. |
|
| | ||
|
Base class of all classes. |
TThreadList is a thread-safe Tlist implementation. Unlike TList, it can be accessed read-write by multiple threads: the list implementation will take care of locking the list when adding or removing items from the list.
|
Class to manage collections of pointers. |