BEPUutilities.SpinLock.TryEnter C# (CSharp) Метод

TryEnter() публичный Метод

Attempts to enters the critical section. A thread cannot attempt to enter the spinlock if it already owns the spinlock.
public TryEnter ( ) : bool
Результат bool
        public bool TryEnter()
        {
            return Interlocked.CompareExchange(ref owner, 0, -1) == -1;
        }