Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
CdsSyncEtwBCLProvider.cs
Go to the documentation of this file.
3
4namespace System.Threading;
5
6[EventSource(Name = "System.Threading.SynchronizationEventSource", Guid = "EC631D38-466B-4290-9306-834971BA0217")]
7internal sealed class CdsSyncEtwBCLProvider : EventSource
8{
10
12 {
13 }
14
15 [UnconditionalSuppressMessage("ReflectionAnalysis", "IL2026:UnrecognizedReflectionPattern", Justification = "Parameters to this method are primitive and are trimmer safe")]
16 [Event(3, Level = EventLevel.Verbose, Version = 1)]
17 public unsafe void Barrier_PhaseFinished(bool currentSense, long phaseNum)
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 }
36}
unsafe void WriteEventCore(int eventId, int eventDataCount, EventData *data)
unsafe void Barrier_PhaseFinished(bool currentSense, long phaseNum)