terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
SpinWait.cs
Go to the documentation of this file.
1using System;
8
9namespace System.Threading
10{
11 [global::Cpp2ILInjected.Token(Token = "0x20001CD")]
12 public struct SpinWait
13 {
14 [global::Cpp2ILInjected.Token(Token = "0x1700018E")]
15 public int Count
16 {
17 [global::Cpp2ILInjected.Token(Token = "0x60010F8")]
18 [global::Cpp2ILInjected.Address(RVA = "0x1C9615C", Offset = "0x1C9615C", Length = "0x8")]
19 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
20 get
21 {
22 throw null;
23 }
24 }
25
26 [global::Cpp2ILInjected.Token(Token = "0x1700018F")]
28 {
29 [global::Cpp2ILInjected.Token(Token = "0x60010F9")]
30 [global::Cpp2ILInjected.Address(RVA = "0x1C96164", Offset = "0x1C96164", Length = "0x78")]
31 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
32 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SemaphoreSlim), Member = "Wait", MemberParameters = new object[]
33 {
34 typeof(int),
36 }, ReturnType = typeof(bool))]
37 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SpinLock), Member = "ContinueTryEnterWithThreadTracking", MemberParameters = new object[]
38 {
39 typeof(int),
40 typeof(uint),
41 typeof(ref bool)
42 }, ReturnType = typeof(void))]
43 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
44 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
45 get
46 {
47 throw null;
48 }
49 }
50
51 [global::Cpp2ILInjected.Token(Token = "0x60010FA")]
52 [global::Cpp2ILInjected.Address(RVA = "0x1C960C0", Offset = "0x1C960C0", Length = "0x8")]
53 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ThreadPoolWorkQueue.QueueSegment), Member = "TryDequeue", MemberParameters = new object[] { typeof(ref IThreadPoolWorkItem) }, ReturnType = typeof(bool))]
54 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Threading.Tasks.TaskCompletionSource<>), Member = "SpinUntilCompleted", ReturnType = typeof(void))]
55 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Threading.Tasks.Task), Member = "AtomicStateUpdate", MemberParameters = new object[]
56 {
57 typeof(int),
58 typeof(int)
59 }, ReturnType = typeof(bool))]
60 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Threading.Tasks.Task), Member = "AtomicStateUpdate", MemberParameters = new object[]
61 {
62 typeof(int),
63 typeof(int),
64 typeof(ref int)
65 }, ReturnType = typeof(bool))]
66 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Threading.Tasks.Task), Member = "SetNotificationForWaitCompletion", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
67 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Collections.Hashtable), Member = "get_Item", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(object))]
68 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Collections.Concurrent.ConcurrentQueue<>.Segment), Member = "EnsureFrozenForEnqueues", ReturnType = typeof(void))]
69 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Collections.Concurrent.ConcurrentQueue<>.Segment), Member = "TryDequeue", MemberParameters = new object[] { "T&" }, ReturnType = typeof(bool))]
70 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Collections.Concurrent.ConcurrentQueue<>.Segment), Member = "TryEnqueue", MemberParameters = new object[] { "T" }, ReturnType = typeof(bool))]
71 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Collections.Concurrent.ConcurrentQueue<>), Member = "get_Count", ReturnType = typeof(int))]
72 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Collections.Concurrent.ConcurrentQueue<>), Member = "GetItemWhenAvailable", MemberParameters = new object[]
73 {
74 "Segment<T>",
75 typeof(int)
76 }, ReturnType = "T")]
77 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "System.Collections.Concurrent.BlockingCollection`1", Member = "TryAddWithNoTimeValidation", MemberParameters = new object[]
78 {
79 "T",
80 typeof(int),
82 }, ReturnType = typeof(bool))]
83 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 13)]
84 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SpinWait), Member = "SpinOnceCore", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
85 public void SpinOnce()
86 {
87 throw null;
88 }
89
90 [global::Cpp2ILInjected.Token(Token = "0x60010FB")]
91 [global::Cpp2ILInjected.Address(RVA = "0x1C95D6C", Offset = "0x1C95D6C", Length = "0xA8")]
92 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
93 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Threading.Tasks.Task), Member = "SpinWait", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(bool))]
94 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
95 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SpinWait), Member = "SpinOnceCore", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
96 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.ArgumentOutOfRangeException), Member = ".ctor", MemberParameters = new object[]
97 {
98 typeof(string),
99 typeof(object),
100 typeof(string)
101 }, ReturnType = typeof(void))]
102 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 8)]
103 public void SpinOnce(int sleep1Threshold)
104 {
105 throw null;
106 }
107
108 [global::Cpp2ILInjected.Token(Token = "0x60010FC")]
109 [global::Cpp2ILInjected.Address(RVA = "0x1C961DC", Offset = "0x1C961DC", Length = "0x1A4")]
110 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
111 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ManualResetEventSlim), Member = "Wait", MemberParameters = new object[]
112 {
113 typeof(int),
115 }, ReturnType = typeof(bool))]
116 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ManualResetEventSlim), Member = "UpdateStateAtomically", MemberParameters = new object[]
117 {
118 typeof(int),
119 typeof(int)
120 }, ReturnType = typeof(void))]
121 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SpinWait), Member = "SpinOnce", ReturnType = typeof(void))]
122 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SpinWait), Member = "SpinOnce", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
123 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(CancellationTokenSource), Member = "WaitForCallbackToComplete", MemberParameters = new object[] { typeof(CancellationCallbackInfo) }, ReturnType = typeof(void))]
124 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SemaphoreSlim), Member = "Wait", MemberParameters = new object[]
125 {
126 typeof(int),
128 }, ReturnType = typeof(bool))]
129 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SpinLock), Member = "DecrementWaiters", ReturnType = typeof(void))]
130 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SpinLock), Member = "ContinueTryEnterWithThreadTracking", MemberParameters = new object[]
131 {
132 typeof(int),
133 typeof(uint),
134 typeof(ref bool)
135 }, ReturnType = typeof(void))]
136 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 8)]
137 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Internal.Runtime.Augments.RuntimeThread), Member = "Sleep", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
138 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Internal.Runtime.Augments.RuntimeThread), Member = "SpinWait", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(bool))]
139 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Internal.Runtime.Augments.RuntimeThread), Member = "Yield", ReturnType = typeof(bool))]
140 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 7)]
142 {
143 throw null;
144 }
145
146 [global::Cpp2ILInjected.Token(Token = "0x60010FD")]
147 [global::Cpp2ILInjected.Address(RVA = "0x1C96380", Offset = "0x1C96380", Length = "0x8")]
148 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "System.Collections.Concurrent.BlockingCollection`1", Member = "TryAddWithNoTimeValidation", MemberParameters = new object[]
149 {
150 "T",
151 typeof(int),
153 }, ReturnType = typeof(bool))]
154 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
155 public void Reset()
156 {
157 throw null;
158 }
159
160 // Note: this type is marked as 'beforefieldinit'.
161 [global::Cpp2ILInjected.Token(Token = "0x60010FE")]
162 [global::Cpp2ILInjected.Address(RVA = "0x1C96388", Offset = "0x1C96388", Length = "0x84")]
163 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
164 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
165 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
166 static SpinWait()
167 {
168 throw null;
169 }
170
171 [global::Cpp2ILInjected.Token(Token = "0x4000924")]
173
174 [global::Cpp2ILInjected.Token(Token = "0x4000925")]
175 [global::Cpp2ILInjected.FieldOffset(Offset = "0x0")]
176 private int _count;
177 }
178}
class f__AnonymousType0<< Count > j__TPar
void SpinOnceCore(int sleep1Threshold)
Definition SpinWait.cs:141
static readonly int SpinCountforSpinBeforeWait
Definition SpinWait.cs:172
void SpinOnce(int sleep1Threshold)
Definition SpinWait.cs:103