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

◆ ToTimeoutMilliseconds()

static int System.Threading.WaitHandle.ToTimeoutMilliseconds ( TimeSpan timeout)
inlinestaticpackage

Definition at line 93 of file WaitHandle.cs.

94 {
95 long num = (long)timeout.TotalMilliseconds;
96 if (num < -1)
97 {
98 throw new ArgumentOutOfRangeException("timeout", SR.ArgumentOutOfRange_NeedNonNegOrNegative1);
99 }
100 if (num > int.MaxValue)
101 {
102 throw new ArgumentOutOfRangeException("timeout", SR.ArgumentOutOfRange_LessEqualToIntegerMaxVal);
103 }
104 return (int)num;
105 }

References System.SR.ArgumentOutOfRange_LessEqualToIntegerMaxVal, System.SR.ArgumentOutOfRange_NeedNonNegOrNegative1, and System.timeout.

Referenced by System.Threading.Thread.Join(), System.Threading.WaitHandle.SignalAndWait(), System.Threading.Thread.Sleep(), System.Threading.Monitor.TryEnter(), System.Threading.Monitor.TryEnter(), System.Threading.Monitor.Wait(), System.Threading.Monitor.Wait(), System.Threading.WaitHandle.WaitAll(), System.Threading.WaitHandle.WaitAll(), System.Threading.WaitHandle.WaitAny(), System.Threading.WaitHandle.WaitAny(), System.Threading.WaitHandle.WaitOne(), and System.Threading.WaitHandle.WaitOne().