Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
CDSCollectionETWBCLProvider.cs
Go to the documentation of this file.
2
4
5[EventSource(Name = "System.Collections.Concurrent.ConcurrentCollectionsEventSource", Guid = "35167F8E-49B2-4b96-AB86-435B59336B5E")]
7{
9
11 {
12 }
13
14 [Event(1, Level = EventLevel.Warning)]
15 public void ConcurrentStack_FastPushFailed(int spinCount)
16 {
17 if (IsEnabled(EventLevel.Warning, EventKeywords.All))
18 {
19 WriteEvent(1, spinCount);
20 }
21 }
22
23 [Event(2, Level = EventLevel.Warning)]
24 public void ConcurrentStack_FastPopFailed(int spinCount)
25 {
26 if (IsEnabled(EventLevel.Warning, EventKeywords.All))
27 {
28 WriteEvent(2, spinCount);
29 }
30 }
31
32 [Event(3, Level = EventLevel.Warning)]
33 public void ConcurrentDictionary_AcquiringAllLocks(int numOfBuckets)
34 {
35 if (IsEnabled(EventLevel.Warning, EventKeywords.All))
36 {
37 WriteEvent(3, numOfBuckets);
38 }
39 }
40
41 [Event(4, Level = EventLevel.Verbose)]
43 {
44 if (IsEnabled(EventLevel.Verbose, EventKeywords.All))
45 {
46 WriteEvent(4);
47 }
48 }
49
50 [Event(5, Level = EventLevel.Verbose)]
52 {
53 if (IsEnabled(EventLevel.Verbose, EventKeywords.All))
54 {
55 WriteEvent(5);
56 }
57 }
58}
unsafe void WriteEvent(int eventId)