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

◆ SpinOnce() [2/2]

void System.Threading.SpinWait.SpinOnce ( int sleep1Threshold)
inline

Definition at line 38 of file SpinWait.cs.

39 {
40 if (sleep1Threshold < -1)
41 {
42 throw new ArgumentOutOfRangeException("sleep1Threshold", sleep1Threshold, SR.ArgumentOutOfRange_NeedNonNegOrNegative1);
43 }
44 if (sleep1Threshold >= 0 && sleep1Threshold < 10)
45 {
46 sleep1Threshold = 10;
47 }
48 SpinOnceCore(sleep1Threshold);
49 }
void SpinOnceCore(int sleep1Threshold)
Definition SpinWait.cs:51

References System.SR.ArgumentOutOfRange_NeedNonNegOrNegative1, and System.Threading.SpinWait.SpinOnceCore().