You are here: Symbol Reference > Math387 Namespace > Classes > TSimpleCriticalSection Record > public > TSimpleCriticalSection.Enter Method
MtxVec VCL
ContentsIndex
PreviousUpNext
TSimpleCriticalSection.Enter Method

Enter the critical section.

Pascal
class procedure Enter(var csLock: integer; const TrueValue: integer = 1); overload; static;

The order in which the threads will pass is not deterministic. The waiting loop is using Sleep(0). class procedure Enter(var csLock: byte; const TrueValue: byte = 1); overload; static;

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!