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

Enables resource protection for the associated data type.

procedure Lock;

Lock is a procedure used to engage the resource protection capabilities of the class for the associated data type. Lock executes the TCriticalSection.Enter method to enable the resource protection block. Use Unlock to release the resource protection block for the class instance.

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