Overload List
| # | Signature | Description |
|---|---|---|
| 1 | procedure Leave; | Leave the critical section. |
| 2 | procedure Leave(const SharedResourceIndex: Integer); | Leave the critical section. |
Overload 1: procedure Leave;
Leave the critical section.
Result: stored in self (calling object)
Remarks:
Call "Leave" before calling "Enter" on the same critical section by the same thread again.
Overload 2: procedure Leave(const SharedResourceIndex: Integer);
Leave the critical section.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | SharedResourceIndex | Integer |
Result: stored in self (calling object)
Remarks:
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.