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

◆ MoveNext() [2/2]

void System.Runtime.CompilerServices.AsyncTaskMethodBuilder< TResult >.AsyncStateMachineBox< TStateMachine >.MoveNext ( Thread threadPoolThread)
inlineprivateinherited

Definition at line 120 of file AsyncTaskMethodBuilder.cs.

121 {
122 bool flag = TplEventSource.Log.IsEnabled();
123 if (flag)
124 {
125 TplEventSource.Log.TraceSynchronousWorkBegin(base.Id, CausalitySynchronousWork.Execution);
126 }
127 ExecutionContext context = Context;
128 if (context == null)
129 {
130 StateMachine.MoveNext();
131 }
132 else if (threadPoolThread == null)
133 {
135 }
136 else
137 {
138 ExecutionContext.RunFromThreadPoolDispatchLoop(threadPoolThread, context, s_callback, this);
139 }
140 if (base.IsCompleted)
141 {
143 }
144 if (flag)
145 {
146 TplEventSource.Log.TraceSynchronousWorkEnd(CausalitySynchronousWork.Execution);
147 }
148 }
static void RunInternal(ExecutionContext executionContext, ContextCallback callback, object state)
static void RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, object state)
static readonly TplEventSource Log

References System.Runtime.CompilerServices.AsyncTaskMethodBuilder< TResult >.AsyncStateMachineBox< TStateMachine >.ClearStateUponCompletion(), System.Runtime.CompilerServices.AsyncTaskMethodBuilder< TResult >.AsyncStateMachineBox< TStateMachine >.Context, System.Threading.Tasks.TplEventSource.Log, System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(), System.Threading.ExecutionContext.RunInternal(), System.Runtime.CompilerServices.AsyncTaskMethodBuilder< TResult >.AsyncStateMachineBox< TStateMachine >.s_callback, and System.Runtime.CompilerServices.AsyncTaskMethodBuilder< TResult >.AsyncStateMachineBox< TStateMachine >.StateMachine.