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

◆ ParallelLoopBegin()

unsafe void System.Threading.Tasks.ParallelEtwProvider.ParallelLoopBegin ( int OriginatingTaskSchedulerID,
int OriginatingTaskID,
int ForkJoinContextID,
ForkJoinOperationType OperationType,
long InclusiveFrom,
long ExclusiveTo )
inline

Definition at line 33 of file ParallelEtwProvider.cs.

34 {
35 if (IsEnabled(EventLevel.Informational, EventKeywords.All))
36 {
37 EventData* ptr = stackalloc EventData[6];
38 *ptr = new EventData
39 {
40 Size = 4,
41 DataPointer = (IntPtr)(&OriginatingTaskSchedulerID)
42 };
43 ptr[1] = new EventData
44 {
45 Size = 4,
46 DataPointer = (IntPtr)(&OriginatingTaskID)
47 };
48 ptr[2] = new EventData
49 {
50 Size = 4,
51 DataPointer = (IntPtr)(&ForkJoinContextID)
52 };
53 ptr[3] = new EventData
54 {
55 Size = 4,
56 DataPointer = (IntPtr)(&OperationType)
57 };
58 ptr[4] = new EventData
59 {
60 Size = 8,
61 DataPointer = (IntPtr)(&InclusiveFrom)
62 };
63 ptr[5] = new EventData
64 {
65 Size = 8,
66 DataPointer = (IntPtr)(&ExclusiveTo)
67 };
68 WriteEventCore(1, 6, ptr);
69 }
70 }
unsafe void WriteEventCore(int eventId, int eventDataCount, EventData *data)

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