TSimpleCriticalSection Record

Source: Math387.cs · Assembly: Dew.Math

public struct TSimpleCriticalSection

Enables threads in a multithreaded application a single-thread only exclusive execution of a part of the code.

The record needs to be initialized with a call to init. The order in which the threads will pass is not deterministic.

Methods

NameDescription
EnterEnter the critical section.
InitInitializes the critical section, if the constructor was not used.
LeaveLeave the critical section.
TryEnterEnter the critical section.