TSimpleCriticalSection.TryEnter Method

function TryEnter(var csLock: Integer; const TrueValue: Integer): Boolean;

Enter the critical section.

#NameTypeDescription
1csLockInteger
2TrueValueInteger

Returns: Boolean

Remarks:

The order in which the threads will pass is not deterministic.