TSimpleCriticalSection.Enter Method

void Enter(ref Int32 csLock, Int32 TrueValue)

Enter the critical section.

#NameTypeDescription
1csLockInt32 (ref)output
2TrueValueInt32

Result: stored in self (calling object)

Remarks:

The order in which the threads will pass is not deterministic. The waiting loop is using Sleep(0).