System.SyncObjs.TCriticalSectionHelper.Enter

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Enter; inline;

Properties

Type Visibility Source Unit Parent
procedure public System.SyncObjs.pas System.SyncObjs TCriticalSectionHelper

Description

Waits until the critical section is free and then locks it.

Call Enter to grant ownership of the critical section to the calling thread.

If the critical section is not currently free, then the calling thread is added to the waiting queue of the critical section.

See Also