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

◆ ParallelInvokeBegin()

unsafe void System.Threading.Tasks.ParallelEtwProvider.ParallelInvokeBegin ( int OriginatingTaskSchedulerID,
int OriginatingTaskID,
int ForkJoinContextID,
ForkJoinOperationType OperationType,
int ActionCount )
inline

Definition at line 105 of file ParallelEtwProvider.cs.

106 {
107 if (IsEnabled(EventLevel.Informational, EventKeywords.All))
108 {
109 EventData* ptr = stackalloc EventData[5];
110 *ptr = new EventData
111 {
112 Size = 4,
113 DataPointer = (IntPtr)(&OriginatingTaskSchedulerID)
114 };
115 ptr[1] = new EventData
116 {
117 Size = 4,
118 DataPointer = (IntPtr)(&OriginatingTaskID)
119 };
120 ptr[2] = new EventData
121 {
122 Size = 4,
123 DataPointer = (IntPtr)(&ForkJoinContextID)
124 };
125 ptr[3] = new EventData
126 {
127 Size = 4,
128 DataPointer = (IntPtr)(&OperationType)
129 };
130 ptr[4] = new EventData
131 {
132 Size = 4,
133 DataPointer = (IntPtr)(&ActionCount)
134 };
135 WriteEventCore(3, 5, ptr);
136 }
137 }
unsafe void WriteEventCore(int eventId, int eventDataCount, EventData *data)

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