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

◆ CheckTimeoutReached()

static bool System.Threading.Tasks.Parallel.CheckTimeoutReached ( int timeoutOccursAt)
inlinestaticprivate

Definition at line 429 of file Parallel.cs.

430 {
431 int tickCount = Environment.TickCount;
432 if (tickCount < timeoutOccursAt)
433 {
434 return false;
435 }
436 if (0 > timeoutOccursAt && 0 < tickCount)
437 {
438 return false;
439 }
440 return true;
441 }

References System.Environment.TickCount.

Referenced by System.Threading.Tasks.Parallel.ForWorker64< TLocal >(), System.Threading.Tasks.Parallel.ForWorker< TLocal >(), and System.Threading.Tasks.Parallel.PartitionerForEachWorker< TSource, TLocal >().