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

◆ AwaitTaskContinuationScheduled()

unsafe void System.Threading.Tasks.TplEventSource.AwaitTaskContinuationScheduled ( int OriginatingTaskSchedulerID,
int OriginatingTaskID,
int ContinueWithTaskId )
inline

Definition at line 262 of file TplEventSource.cs.

263 {
264 if (IsEnabled() && IsEnabled(EventLevel.Informational, (EventKeywords)3L))
265 {
266 EventData* ptr = stackalloc EventData[3];
267 ptr->Size = 4;
268 ptr->DataPointer = (IntPtr)(&OriginatingTaskSchedulerID);
269 ptr->Reserved = 0;
270 ptr[1].Size = 4;
271 ptr[1].DataPointer = (IntPtr)(&OriginatingTaskID);
272 ptr[1].Reserved = 0;
273 ptr[2].Size = 4;
274 ptr[2].DataPointer = (IntPtr)(&ContinueWithTaskId);
275 ptr[2].Reserved = 0;
277 {
278 Guid guid = CreateGuidForTaskID(ContinueWithTaskId);
279 WriteEventWithRelatedActivityIdCore(12, &guid, 3, ptr);
280 }
281 else
282 {
283 WriteEventCore(12, 3, ptr);
284 }
285 }
286 }
unsafe void WriteEventCore(int eventId, int eventDataCount, EventData *data)
unsafe void WriteEventWithRelatedActivityIdCore(int eventId, Guid *relatedActivityId, int eventDataCount, EventData *data)
static Guid CreateGuidForTaskID(int taskID)

References System.Threading.Tasks.TplEventSource.CreateGuidForTaskID(), System.Diagnostics.Tracing.EventSource.EventData.DataPointer, System.Diagnostics.Tracing.EventSource.IsEnabled(), System.L, System.Diagnostics.Tracing.EventSource.EventData.Reserved, System.Diagnostics.Tracing.EventSource.EventData.Size, System.Threading.Tasks.TplEventSource.TasksSetActivityIds, System.Diagnostics.Tracing.EventSource.WriteEventCore(), and System.Diagnostics.Tracing.EventSource.WriteEventWithRelatedActivityIdCore().

Referenced by System.Threading.Tasks.AwaitTaskContinuation.Run(), and System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation.Run().