Topic Path: Symbol Reference > Classes > TIdThreadSafeStringList Class > TIdThreadSafeStringList Methods > Lock Method
ContentsIndexHome
PreviousUpNext
TIdThreadSafeStringList.Lock Method

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

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.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.