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

◆ DispatchWorkItemWithWorkerTracking()

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

Definition at line 562 of file ThreadPoolWorkQueue.cs.

563 {
564 bool flag = false;
565 try
566 {
567 ThreadPool.ReportThreadStatus(isWorking: true);
568 flag = true;
569 DispatchWorkItem(workItem, currentThread);
570 }
571 finally
572 {
573 if (flag)
574 {
575 ThreadPool.ReportThreadStatus(isWorking: false);
576 }
577 }
578 }
static void DispatchWorkItem(object workItem, Thread currentThread)

References System.Threading.ThreadPoolWorkQueue.DispatchWorkItem(), and System.Threading.ThreadPool.ReportThreadStatus().

Referenced by System.Threading.ThreadPoolWorkQueue.Dispatch().