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

◆ TaskWaitBegin()

unsafe void System.Threading.Tasks.TplEventSource.TaskWaitBegin ( int OriginatingTaskSchedulerID,
int OriginatingTaskID,
int TaskID,
TaskWaitBehavior Behavior,
int ContinueWithTaskID )
inline

Definition at line 201 of file TplEventSource.cs.

202 {
203 if (IsEnabled() && IsEnabled(EventLevel.Informational, (EventKeywords)3L))
204 {
205 EventData* ptr = stackalloc EventData[5];
206 ptr->Size = 4;
207 ptr->DataPointer = (IntPtr)(&OriginatingTaskSchedulerID);
208 ptr->Reserved = 0;
209 ptr[1].Size = 4;
210 ptr[1].DataPointer = (IntPtr)(&OriginatingTaskID);
211 ptr[1].Reserved = 0;
212 ptr[2].Size = 4;
213 ptr[2].DataPointer = (IntPtr)(&TaskID);
214 ptr[2].Reserved = 0;
215 ptr[3].Size = 4;
216 ptr[3].DataPointer = (IntPtr)(&Behavior);
217 ptr[3].Reserved = 0;
218 ptr[4].Size = 4;
219 ptr[4].DataPointer = (IntPtr)(&ContinueWithTaskID);
220 ptr[4].Reserved = 0;
222 {
223 Guid guid = CreateGuidForTaskID(TaskID);
224 WriteEventWithRelatedActivityIdCore(10, &guid, 5, ptr);
225 }
226 else
227 {
228 WriteEventCore(10, 5, ptr);
229 }
230 }
231 }
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().