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

◆ Barrier_PhaseFinished()

unsafe void System.Threading.CdsSyncEtwBCLProvider.Barrier_PhaseFinished ( bool currentSense,
long phaseNum )
inline

Definition at line 17 of file CdsSyncEtwBCLProvider.cs.

18 {
19 if (IsEnabled(EventLevel.Verbose, EventKeywords.All))
20 {
21 EventData* ptr = stackalloc EventData[2];
22 int num = (currentSense ? 1 : 0);
23 *ptr = new EventData
24 {
25 Size = 4,
26 DataPointer = (IntPtr)(&num)
27 };
28 ptr[1] = new EventData
29 {
30 Size = 8,
31 DataPointer = (IntPtr)(&phaseNum)
32 };
33 WriteEventCore(3, 2, ptr);
34 }
35 }
unsafe void WriteEventCore(int eventId, int eventDataCount, EventData *data)

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