Internet Direct (Indy)
Home
PreviousUpNext
TIdThreadSafeStringList.Lock Method

Enables resource protection and returns the current value for the thread-safe data type.

Pascal
function Lock: TIdStringList; reintroduce;

TIdStringList - Contents of the Value for the data type.

Lock is a TIdStringList function used enable resource protection for the thread-safe data type, and return the current contents of the Value property. 

Lock is re-introduced in TIdThreadSafeStringList to provide the TIdStringList return value for the thread-safe data type. Lock calls the inherited Lock method, and sets the return value to Value. 

Use Unlock to disable the resource protection capabilities of the thread-safe data type.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.