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

◆ TryExecuteTaskInline()

override bool System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline ( Task task,
bool taskWasPreviouslyQueued )
inlineprotected

Definition at line 34 of file ThreadPoolTaskScheduler.cs.

35 {
36 if (taskWasPreviouslyQueued && !ThreadPool.TryPopCustomWorkItem(task))
37 {
38 return false;
39 }
40 try
41 {
42 task.ExecuteEntryUnsafe(null);
43 }
44 finally
45 {
47 {
49 }
50 }
51 return true;
52 }

References System.Threading.Tasks.ThreadPoolTaskScheduler.NotifyWorkItemProgress(), System.task, and System.Threading.ThreadPool.TryPopCustomWorkItem().