Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ TryEnter() [3/3]

void System.Threading.SpinLock.TryEnter ( TimeSpan timeout,
ref bool lockTaken )
inline

Definition at line 120 of file SpinLock.cs.

121 {
122 long num = (long)timeout.TotalMilliseconds;
123 if (num < -1 || num > int.MaxValue)
124 {
125 throw new ArgumentOutOfRangeException("timeout", timeout, SR.SpinLock_TryEnter_ArgumentOutOfRange);
126 }
127 TryEnter((int)timeout.TotalMilliseconds, ref lockTaken);
128 }
void TryEnter(ref bool lockTaken)
Definition SpinLock.cs:103

References System.SR.SpinLock_TryEnter_ArgumentOutOfRange, System.timeout, and System.Threading.SpinLock.TryEnter().