System.Classes.TThreadList.LockList

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function LockList: TList;

C++

TList* __fastcall LockList();

Properties

Type Visibility Source Unit Parent
function public
System.Classes.pas
System.Classes.hpp
System.Classes TThreadList

Description

Locks the thread-safe list and returns a TList object.

Note: LockList calls the Windows EnterCriticalSection function to lock the thread-safe list. It then returns the TList object that contains the list.


See Also


Code Examples