procedure Enter(var csLock: Integer; const TrueValue: Integer);
Enter the critical section.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | csLock | Integer | |
| 2 | TrueValue | Integer |
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).