You are here: Symbol Reference > Math387 Namespace > Classes > TFairSemaphoreSection Class > public > Leave Method > TFairSemaphoreSection.Leave Method (integer)
MtxVec VCL
ContentsIndex
PreviousUpNext
TFairSemaphoreSection.Leave Method (integer)

Leave the critical section.

Pascal
procedure Leave(const SharedResourceIndex: integer); overload;

The SharedResourceIndex parameter must be the same what was returned by the Enter method when called by the same thread. This is the index of the shared resource to be released. 

Call "Leave" before calling "Enter" on the same critical section by the same thread again.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!