terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
SynchronizationContext.cs
Go to the documentation of this file.
1using System;
5
6namespace System.Threading
7{
8 // Token: 0x020001F2 RID: 498
10 {
11 // Token: 0x060011C3 RID: 4547 RVA: 0x00025C24 File Offset: 0x00023E24
13 {
14 }
15
16 // Token: 0x060011C4 RID: 4548 RVA: 0x00025C38 File Offset: 0x00023E38
18 {
19 /*
20An exception occurred when decompiling this method (060011C4)
21
22ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Threading.SynchronizationContext::IsWaitNotificationRequired()
23
24 ---> System.Exception: Basic block has to end with unconditional control flow.
25{
26 Block_0:
27 stloc:SynchronizationContextProperties(var_0_06, ldfld:SynchronizationContextProperties(SynchronizationContext::_props, ldloc:SynchronizationContext(this)))
28}
29
30 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
31 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
32 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
33 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
34 --- End of inner exception stack trace ---
35 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
36 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
37*/;
38 }
39
40 // Token: 0x060011C5 RID: 4549 RVA: 0x00025C4C File Offset: 0x00023E4C
41 public virtual void Send(SendOrPostCallback d, object state)
42 {
43 IntPtr method = d.method;
44 IntPtr invoke_impl = d.invoke_impl;
45 IntPtr method_code = d.method_code;
46 }
47
48 // Token: 0x060011C6 RID: 4550 RVA: 0x00025C70 File Offset: 0x00023E70
49 public virtual void Post(SendOrPostCallback d, object state)
50 {
51 }
52
53 // Token: 0x060011C7 RID: 4551 RVA: 0x00025C80 File Offset: 0x00023E80
54 public virtual void OperationStarted()
55 {
56 }
57
58 // Token: 0x060011C8 RID: 4552 RVA: 0x00025C90 File Offset: 0x00023E90
59 public virtual void OperationCompleted()
60 {
61 }
62
63 // Token: 0x060011C9 RID: 4553 RVA: 0x00025CA0 File Offset: 0x00023EA0
64 [CLSCompliant(false)]
66 public virtual int Wait(IntPtr[] waitHandles, bool waitAll, int millisecondsTimeout)
67 {
68 while (waitHandles == null)
69 {
70 }
71 int num;
72 return num;
73 }
74
75 // Token: 0x060011CA RID: 4554 RVA: 0x00025CB4 File Offset: 0x00023EB4
76 [ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail)]
77 [CLSCompliant(false)]
79 protected static int WaitHelper(IntPtr[] waitHandles, bool waitAll, int millisecondsTimeout)
80 {
81 int num;
82 return num;
83 }
84
85 // Token: 0x060011CB RID: 4555 RVA: 0x00025CC4 File Offset: 0x00023EC4
92
93 // Token: 0x170001AE RID: 430
94 // (get) Token: 0x060011CC RID: 4556 RVA: 0x00025CEC File Offset: 0x00023EEC
96 {
97 get
98 {
100 if (executionContext != null)
101 {
103 if (syncContext != null)
104 {
105 return syncContext;
106 }
107 }
109 }
110 }
111
112 // Token: 0x170001AF RID: 431
113 // (get) Token: 0x060011CD RID: 4557 RVA: 0x00025D18 File Offset: 0x00023F18
115 {
117 get
118 {
120 if (executionContext != null)
121 {
123 if (syncContextNoFlow != null)
124 {
125 return syncContextNoFlow;
126 }
127 }
129 }
130 }
131
132 // Token: 0x060011CE RID: 4558 RVA: 0x00025D44 File Offset: 0x00023F44
134 {
135 /*
136An exception occurred when decompiling this method (060011CE)
137
138ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Threading.SynchronizationContext System.Threading.SynchronizationContext::GetThreadLocalContext()
139
140 ---> System.Exception: Basic block has to end with unconditional control flow.
141{
142 IL_0003:
143 stloc:OSSpecificSynchronizationContext(var_0_08, call:OSSpecificSynchronizationContext(OSSpecificSynchronizationContext::Get))
144}
145
146 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
147 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
148 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
149 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
150 --- End of inner exception stack trace ---
151 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
152 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
153*/;
154 }
155
156 // Token: 0x060011CF RID: 4559 RVA: 0x0000207A File Offset: 0x0000027A
158 {
159 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
160 }
161
162 // Token: 0x170001B0 RID: 432
163 // (get) Token: 0x060011D0 RID: 4560 RVA: 0x00025D5C File Offset: 0x00023F5C
165 {
166 get
167 {
169 }
170 }
171
172 // Token: 0x04000990 RID: 2448
174
175 // Token: 0x04000991 RID: 2449
177
178 // Token: 0x04000992 RID: 2450
180
181 // Token: 0x04000993 RID: 2451
183
184 // Token: 0x04000994 RID: 2452
186
187 // Token: 0x04000995 RID: 2453
189 }
190}
class f__AnonymousType0<< Count > j__TPar
IntPtr method_code
Definition Delegate.cs:386
IntPtr invoke_impl
Definition Delegate.cs:371
SynchronizationContextProperties _props
static SynchronizationContext CurrentExplicit
static int WaitHelper(IntPtr[] waitHandles, bool waitAll, int millisecondsTimeout)
static void SetSynchronizationContext(SynchronizationContext syncContext)
virtual void Post(SendOrPostCallback d, object state)
static SynchronizationContext GetThreadLocalContext()
virtual void Send(SendOrPostCallback d, object state)
virtual int Wait(IntPtr[] waitHandles, bool waitAll, int millisecondsTimeout)
virtual SynchronizationContext CreateCopy()
ExecutionContext m_ExecutionContext
Definition Thread.cs:767
static Thread CurrentThread
Definition Thread.cs:381
ExecutionContext GetMutableExecutionContext()
Definition Thread.cs:139