Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ TryEnter() [1/3]

void System.Threading.SpinLock.TryEnter ( int millisecondsTimeout,
ref bool lockTaken )
inline

Definition at line 130 of file SpinLock.cs.

131 {
132 int owner = _owner;
133 if (((millisecondsTimeout < -1) | lockTaken) || (owner & -2147483647) != int.MinValue || CompareExchange(ref _owner, owner | 1, owner, ref lockTaken) != owner)
134 {
136 }
137 }
void ContinueTryEnter(int millisecondsTimeout, ref bool lockTaken)
Definition SpinLock.cs:139
static int CompareExchange(ref int location, int value, int comparand, ref bool success)
Definition SpinLock.cs:78

References System.Threading.SpinLock._owner, System.Threading.SpinLock.CompareExchange(), System.Threading.SpinLock.ContinueTryEnter(), and System.millisecondsTimeout.