Toggle navigation
Hot Examples
RU
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
C#
PHP
C#
Java
Go
C++
Python
JS
TS
Найти
Главная
BEPUutilities
SpinLock
TryEnter
BEPUutilities.SpinLock.TryEnter C# (CSharp) Метод
Документация по классу SpinLock
Показать файл
Открыть проект
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; }
SpinLock
Enter
Exit
TryEnter
WaitBriefly