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

◆ CallCallback()

void System.Threading.TimerQueueTimer.CallCallback ( bool isThreadPool)
inlinepackage

Definition at line 267 of file TimerQueueTimer.cs.

268 {
269 if (FrameworkEventSource.Log.IsEnabled(EventLevel.Informational, (EventKeywords)16L))
270 {
271 FrameworkEventSource.Log.ThreadTransferReceiveObj(this, 1, string.Empty);
272 }
273 ExecutionContext executionContext = _executionContext;
274 if (executionContext == null)
275 {
277 }
278 else if (isThreadPool)
279 {
280 ExecutionContext.RunFromThreadPoolDispatchLoop(Thread.CurrentThread, executionContext, s_callCallbackInContext, this);
281 }
282 else
283 {
284 ExecutionContext.RunInternal(executionContext, s_callCallbackInContext, this);
285 }
286 }
readonly ExecutionContext _executionContext
readonly TimerCallback _timerCallback
static readonly ContextCallback s_callCallbackInContext

References System.Threading.TimerQueueTimer._executionContext, System.Threading.TimerQueueTimer._state, System.Threading.TimerQueueTimer._timerCallback, System.Threading.Thread.CurrentThread, System.L, System.Diagnostics.Tracing.FrameworkEventSource.Log, System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(), System.Threading.ExecutionContext.RunInternal(), and System.Threading.TimerQueueTimer.s_callCallbackInContext.

Referenced by System.Threading.TimerQueueTimer.Fire().