RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCriticalSection.Leave Method

Allows other threads to use the critical section.

Pascal
procedure Leave;
C++
__fastcall Leave();

Call Leave at the end of a thread-sensitive section of code. Each call to Leave should be balanced by a call to Enter or Acquire at the beginning of the thread-sensitive section. Leave calls Release to allow other threads to acquire the critical section. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!