Sign in Join
FPDoc Onlineexperiment

InitCriticalSection procedure

In unit System

Initialize a critical section.

Declaration

pascal
procedure InitCriticalSection(out cs: TRTLCriticalSection)

Description

InitCriticalSection initializes a critical section CS for use. Before using a critical section with EnterCriticalsection or LeaveCriticalsection the critical section should be initialized with InitCriticalSection.

When a critical section is no longer used, it should be disposed of with DoneCriticalsection

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.