Topic Path: Symbol Reference > Classes > TCriticalSection Class > TCriticalSection Methods > Leave Method
TCriticalSection.Leave Method

Stops resource protection in a critical section.

procedure Leave;

Leave is a procedure used to stop resource protection for the critical section on the .Net platform. 

Leave calls the System.Threading.Monitor.Exit method in the FCL using the current object instance as an argument. 

Use Enter or Acquire to begin resource protection for the critical section.

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