[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Classes' (#rtl)

TThreadList

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Thread-safe list object

Declaration

Source position: classesh.inc line 352

type TThreadList = class end;

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 emements 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

Inheritance

TThreadList

  

Thread-safe list object

|

TObject

Description

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.

See also

TList

  

Class to manage collections of pointers.


Documentation generated on: Mar 17 2017