public unsafe void ParallelInvokeBegin(int OriginatingTaskSchedulerID, int OriginatingTaskID, int ForkJoinContextID, TplEtwProvider.ForkJoinOperationType OperationType, int ActionCount)
 {
     if (base.IsEnabled() && base.IsEnabled(EventLevel.Informational, (EventKeywords)4L))
     {
         EventSource.EventData *ptr = stackalloc EventSource.EventData[checked (unchecked ((UIntPtr)5) * (UIntPtr)sizeof(EventSource.EventData))];
         ptr->Size          = 4;
         ptr->DataPointer   = (IntPtr)((void *)(&OriginatingTaskSchedulerID));
         ptr[1].Size        = 4;
         ptr[1].DataPointer = (IntPtr)((void *)(&OriginatingTaskID));
         ptr[2].Size        = 4;
         ptr[2].DataPointer = (IntPtr)((void *)(&ForkJoinContextID));
         ptr[3].Size        = 4;
         ptr[3].DataPointer = (IntPtr)((void *)(&OperationType));
         ptr[4].Size        = 4;
         ptr[4].DataPointer = (IntPtr)((void *)(&ActionCount));
         base.WriteEventCore(3, 5, ptr);
     }
 }
Esempio n. 2
0
 public unsafe void ParallelLoopBegin(int OriginatingTaskSchedulerID, int OriginatingTaskID, int ForkJoinContextID, TplEtwProvider.ForkJoinOperationType OperationType, long InclusiveFrom, long ExclusiveTo)
 {
     if (!this.IsEnabled() || !this.IsEnabled(EventLevel.Informational, (EventKeywords)4))
     {
         return;
     }
     EventSource.EventData *data = stackalloc EventSource.EventData[6];
     data->Size          = 4;
     data->DataPointer   = (IntPtr)((void *)&OriginatingTaskSchedulerID);
     data[1].Size        = 4;
     data[1].DataPointer = (IntPtr)((void *)&OriginatingTaskID);
     data[2].Size        = 4;
     data[2].DataPointer = (IntPtr)((void *)&ForkJoinContextID);
     data[3].Size        = 4;
     data[3].DataPointer = (IntPtr)((void *)&OperationType);
     data[4].Size        = 8;
     data[4].DataPointer = (IntPtr)((void *)&InclusiveFrom);
     data[5].Size        = 8;
     data[5].DataPointer = (IntPtr)((void *)&ExclusiveTo);
     this.WriteEventCore(1, 6, data);
 }
 public unsafe void ParallelLoopBegin(int OriginatingTaskSchedulerID, int OriginatingTaskID, int ForkJoinContextID, TplEtwProvider.ForkJoinOperationType OperationType, long InclusiveFrom, long ExclusiveTo)
 {
     if (base.IsEnabled() && base.IsEnabled(EventLevel.Informational, (EventKeywords)4L))
     {
         EventSource.EventData *ptr = stackalloc EventSource.EventData[checked (unchecked ((UIntPtr)6) * (UIntPtr)sizeof(EventSource.EventData))];
         ptr->Size          = 4;
         ptr->DataPointer   = (IntPtr)((void *)(&OriginatingTaskSchedulerID));
         ptr[1].Size        = 4;
         ptr[1].DataPointer = (IntPtr)((void *)(&OriginatingTaskID));
         ptr[2].Size        = 4;
         ptr[2].DataPointer = (IntPtr)((void *)(&ForkJoinContextID));
         ptr[3].Size        = 4;
         ptr[3].DataPointer = (IntPtr)((void *)(&OperationType));
         ptr[4].Size        = 8;
         ptr[4].DataPointer = (IntPtr)((void *)(&InclusiveFrom));
         ptr[5].Size        = 8;
         ptr[5].DataPointer = (IntPtr)((void *)(&ExclusiveTo));
         base.WriteEventCore(1, 6, ptr);
     }
 }
Esempio n. 4
0
 public unsafe void ParallelInvokeBegin(int OriginatingTaskSchedulerID, int OriginatingTaskID, int ForkJoinContextID, TplEtwProvider.ForkJoinOperationType OperationType, int ActionCount)
 {
     if (!this.IsEnabled() || !this.IsEnabled(EventLevel.Informational, (EventKeywords)4))
     {
         return;
     }
     EventSource.EventData *data = stackalloc EventSource.EventData[5];
     data->Size          = 4;
     data->DataPointer   = (IntPtr)((void *)&OriginatingTaskSchedulerID);
     data[1].Size        = 4;
     data[1].DataPointer = (IntPtr)((void *)&OriginatingTaskID);
     data[2].Size        = 4;
     data[2].DataPointer = (IntPtr)((void *)&ForkJoinContextID);
     data[3].Size        = 4;
     data[3].DataPointer = (IntPtr)((void *)&OperationType);
     data[4].Size        = 4;
     data[4].DataPointer = (IntPtr)((void *)&ActionCount);
     this.WriteEventCore(3, 5, data);
 }