System.SyncObjs.TCriticalSection.Enter
Delphi
procedure Enter; inline;
C++
void __fastcall Enter();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.SyncObjs.pas System.SyncObjs.hpp |
System.SyncObjs | TCriticalSection |
Description
Blocks other threads when the calling thread enters a thread-sensitive section.
Call Enter to block all other threads from entering code protected by this critical section until the Leave or Release method is called. Enter calls the Acquire method to bind the critical section to the calling thread.