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

◆ DispatchWorkItem()

static void System.Threading.ThreadPoolWorkQueue.DispatchWorkItem ( object workItem,
Thread currentThread )
inlinestaticprivate

Definition at line 581 of file ThreadPoolWorkQueue.cs.

582 {
583 if (workItem is Task task)
584 {
585 task.ExecuteFromThreadPool(currentThread);
586 }
587 else
588 {
589 Unsafe.As<IThreadPoolWorkItem>(workItem).Execute();
590 }
591 }

References System.Execute, and System.task.

Referenced by System.Threading.ThreadPoolWorkQueue.Dispatch(), and System.Threading.ThreadPoolWorkQueue.DispatchWorkItemWithWorkerTracking().