Topic Path: Symbol Reference > Classes > TIdSocketList Class > TIdSocketList Methods > Lock Method
TIdSocketList.Lock Method

Acquires a critical section to protect resources in the socket list.

procedure Lock;

Lock is a procedure used to acquire a critical section that protects access to resources in the socket list in a multi-threaded application. 

Use Unlock to release the critical section after peforming an action to update the contents of the socket list.

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