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

◆ TaskScheduled()

unsafe void System.Threading.Tasks.TplEventSource.TaskScheduled ( int OriginatingTaskSchedulerID,
int OriginatingTaskID,
int TaskID,
int CreatingTaskID,
int TaskCreationOptions,
int appDomain = 1 )
inline

Definition at line 131 of file TplEventSource.cs.

132 {
133 if (IsEnabled() && IsEnabled(EventLevel.Informational, (EventKeywords)3L))
134 {
135 EventData* ptr = stackalloc EventData[6];
136 ptr->Size = 4;
137 ptr->DataPointer = (IntPtr)(&OriginatingTaskSchedulerID);
138 ptr->Reserved = 0;
139 ptr[1].Size = 4;
140 ptr[1].DataPointer = (IntPtr)(&OriginatingTaskID);
141 ptr[1].Reserved = 0;
142 ptr[2].Size = 4;
143 ptr[2].DataPointer = (IntPtr)(&TaskID);
144 ptr[2].Reserved = 0;
145 ptr[3].Size = 4;
146 ptr[3].DataPointer = (IntPtr)(&CreatingTaskID);
147 ptr[3].Reserved = 0;
148 ptr[4].Size = 4;
149 ptr[4].DataPointer = (IntPtr)(&TaskCreationOptions);
150 ptr[4].Reserved = 0;
151 ptr[5].Size = 4;
152 ptr[5].DataPointer = (IntPtr)(&appDomain);
153 ptr[5].Reserved = 0;
155 {
156 Guid guid = CreateGuidForTaskID(TaskID);
157 WriteEventWithRelatedActivityIdCore(7, &guid, 6, ptr);
158 }
159 else
160 {
161 WriteEventCore(7, 6, ptr);
162 }
163 }
164 }
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().