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

◆ UnsafeRegisterWaitForSingleObject() [3/4]

static RegisteredWaitHandle System.Threading.ThreadPool.UnsafeRegisterWaitForSingleObject ( WaitHandle waitObject,
WaitOrTimerCallback callBack,
object? state,
TimeSpan timeout,
bool executeOnlyOnce )
inlinestatic

Definition at line 484 of file ThreadPool.cs.

485 {
486 long num = (long)timeout.TotalMilliseconds;
487 if (num < -1)
488 {
489 throw new ArgumentOutOfRangeException("timeout", SR.ArgumentOutOfRange_NeedNonNegOrNegative1);
490 }
491 if (num > int.MaxValue)
492 {
493 throw new ArgumentOutOfRangeException("timeout", SR.ArgumentOutOfRange_LessEqualToIntegerMaxVal);
494 }
496 }
static RegisteredWaitHandle RegisterWaitForSingleObject(WaitHandle waitObject, WaitOrTimerCallback callBack, object state, uint millisecondsTimeOutInterval, bool executeOnlyOnce, bool flowExecutionContext)

References System.SR.ArgumentOutOfRange_LessEqualToIntegerMaxVal, System.SR.ArgumentOutOfRange_NeedNonNegOrNegative1, System.callBack, System.Threading.ThreadPool.RegisterWaitForSingleObject(), System.state, and System.timeout.