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

◆ ParallelLoopEnd()

unsafe void System.Threading.Tasks.ParallelEtwProvider.ParallelLoopEnd ( int OriginatingTaskSchedulerID,
int OriginatingTaskID,
int ForkJoinContextID,
long TotalIterations )
inline

Definition at line 74 of file ParallelEtwProvider.cs.

75 {
76 if (IsEnabled(EventLevel.Informational, EventKeywords.All))
77 {
78 EventData* ptr = stackalloc EventData[4];
79 *ptr = new EventData
80 {
81 Size = 4,
82 DataPointer = (IntPtr)(&OriginatingTaskSchedulerID)
83 };
84 ptr[1] = new EventData
85 {
86 Size = 4,
87 DataPointer = (IntPtr)(&OriginatingTaskID)
88 };
89 ptr[2] = new EventData
90 {
91 Size = 4,
92 DataPointer = (IntPtr)(&ForkJoinContextID)
93 };
94 ptr[3] = new EventData
95 {
96 Size = 8,
97 DataPointer = (IntPtr)(&TotalIterations)
98 };
99 WriteEventCore(2, 4, ptr);
100 }
101 }
unsafe void WriteEventCore(int eventId, int eventDataCount, EventData *data)

References System.Diagnostics.Tracing.EventSource.IsEnabled(), and System.Diagnostics.Tracing.EventSource.WriteEventCore().