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

◆ RunFromThreadPoolDispatchLoop()

static void System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop ( Thread threadPoolThread,
ExecutionContext executionContext,
ContextCallback callback,
object state )
inlinestaticpackage

Definition at line 182 of file ExecutionContext.cs.

183 {
184 if (executionContext != null && !executionContext.m_isDefault)
185 {
187 }
189 try
190 {
191 callback(state);
192 }
193 catch (Exception source)
194 {
196 }
199 if (executionContext2 != null)
200 {
202 }
203 exceptionDispatchInfo?.Throw();
204 }
static ExceptionDispatchInfo Capture(Exception source)
static void RestoreChangedContextToThread(Thread currentThread, ExecutionContext contextToRestore, ExecutionContext currentContext)

References System.Runtime.ExceptionServices.ExceptionDispatchInfo.Capture(), System.Runtime.Serialization.Dictionary, System.Threading.ExecutionContext.RestoreChangedContextToThread(), System.source, and System.state.

Referenced by System.Threading.TimerQueueTimer.CallCallback(), System.Threading.Tasks.Task< TResult >.ExecuteWithThreadLocal(), and System.Runtime.CompilerServices.AsyncTaskMethodBuilder< TResult >.AsyncStateMachineBox< TStateMachine >.MoveNext().