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

Provides resource protection for Session properties and methods.

procedure Lock;

Lock is a procedure used to enable resource protection for the properties and methods of the HTTP session in a multi-threaded application. 

Lock uses the internal TIdCriticalSection instance allocated in the Create method, and freed in Destroy

Use Unlock to disable resource protection for the HTTP session.

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