Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
CdsSyncEtwBCLProvider.cs
Go to the documentation of this file.
1
using
System.Diagnostics.CodeAnalysis
;
2
using
System.Diagnostics.Tracing
;
3
4
namespace
System.Threading
;
5
6
[
EventSource
(
Name
=
"System.Threading.SynchronizationEventSource"
,
Guid
=
"EC631D38-466B-4290-9306-834971BA0217"
)]
7
internal
sealed
class
CdsSyncEtwBCLProvider
:
EventSource
8
{
9
public
static
CdsSyncEtwBCLProvider
Log
=
new
CdsSyncEtwBCLProvider
();
10
11
private
CdsSyncEtwBCLProvider
()
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
}
System.Diagnostics.Tracing.EventSource.WriteEventCore
unsafe void WriteEventCore(int eventId, int eventDataCount, EventData *data)
Definition
EventSource.cs:962
System.Diagnostics.Tracing.EventSource.IsEnabled
bool IsEnabled()
Definition
EventSource.cs:307
System.Diagnostics.Tracing.EventSource
Definition
EventSource.cs:19
System.Threading.CdsSyncEtwBCLProvider.CdsSyncEtwBCLProvider
CdsSyncEtwBCLProvider()
Definition
CdsSyncEtwBCLProvider.cs:11
System.Threading.CdsSyncEtwBCLProvider.Barrier_PhaseFinished
unsafe void Barrier_PhaseFinished(bool currentSense, long phaseNum)
Definition
CdsSyncEtwBCLProvider.cs:17
System.Threading.CdsSyncEtwBCLProvider.Log
static CdsSyncEtwBCLProvider Log
Definition
CdsSyncEtwBCLProvider.cs:9
System.Threading.CdsSyncEtwBCLProvider
Definition
CdsSyncEtwBCLProvider.cs:8
System.Version
Definition
Version.cs:10
System.Diagnostics.CodeAnalysis
Definition
AllowNullAttribute.cs:1
System.Diagnostics.Tracing.EventLevel
EventLevel
Definition
EventLevel.cs:4
System.Diagnostics.Tracing.EventKeywords
EventKeywords
Definition
EventKeywords.cs:5
System.Diagnostics.Tracing
Definition
ActivityTracker.cs:4
System.Threading
Definition
TaskToApm.cs:3
System.TypeNameKind.Name
@ Name
System.AttributeTargets.Event
@ Event
System.Diagnostics.Tracing.EventSource.EventData
Definition
EventSource.cs:21
System.Guid
Definition
Guid.cs:15
System.IntPtr
Definition
IntPtr.cs:14
source
System.Threading
System.Threading
CdsSyncEtwBCLProvider.cs
Generated by
1.10.0