System.SyncObjs.TCriticalSection.Leave
Delphi
procedure Leave; inline;
C++
void __fastcall Leave(void);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.SyncObjs.pas System.SyncObjs.hpp |
System.SyncObjs | TCriticalSection |
Description
Allows other threads to use the critical section.
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.