Internet Direct (Indy)
Home
PreviousUpNext
TIdThreadSafe.Lock Method

Enables resource protection for the associated data type.

Pascal
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.

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.