Toggle navigation
Hot Examples
PT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
C#
PHP
C#
Java
Go
C++
Python
JS
TS
Pesquisar
Página Inicial
BEPUutilities
SpinLock
TryEnter
BEPUutilities.SpinLock.TryEnter C# (CSharp) Method
SpinLock Class Documentation
Exibir arquivo
Open project: Indiefreaks/igf
TryEnter()
public
method
Attempts to enters the critical section. A thread cannot attempt to enter the spinlock if it already owns the spinlock.
public
TryEnter
( ) :
bool
return
bool
public bool TryEnter() { return Interlocked.CompareExchange(ref owner, 0, -1) == -1; }
SpinLock
Enter
Exit
TryEnter
WaitBriefly