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

◆ RegisterWaitForSingleObject() [4/5]

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

Definition at line 469 of file ThreadPool.cs.

470 {
471 long num = (long)timeout.TotalMilliseconds;
472 if (num < -1)
473 {
474 throw new ArgumentOutOfRangeException("timeout", SR.ArgumentOutOfRange_NeedNonNegOrNegative1);
475 }
476 if (num > int.MaxValue)
477 {
478 throw new ArgumentOutOfRangeException("timeout", SR.ArgumentOutOfRange_LessEqualToIntegerMaxVal);
479 }
481 }
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.