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
TaskScheduler.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x0200024E RID: 590
8 [DebuggerDisplay("Id={Id}")]
9 [DebuggerTypeProxy(typeof(TaskScheduler.SystemThreadingTasks_TaskSchedulerDebugView))]
10 public abstract class TaskScheduler
11 {
12 // Token: 0x06001440 RID: 5184
13 protected internal abstract void QueueTask(Task task);
14
15 // Token: 0x06001441 RID: 5185
16 protected abstract bool TryExecuteTaskInline(Task task, bool taskWasPreviouslyQueued);
17
18 // Token: 0x06001442 RID: 5186 RVA: 0x0002A898 File Offset: 0x00028A98
20 {
21 TaskScheduler taskScheduler = task.m_taskScheduler;
22 bool flag;
23 if (taskScheduler != null)
24 {
25 flag = taskScheduler.TryRunInline(task, taskWasPreviouslyQueued);
26 return flag;
27 }
29 if (flag)
30 {
31 if (task.m_action != null)
32 {
33 int stateFlags = task.m_stateFlags;
34 int stateFlags2 = task.m_stateFlags;
38 int inliningDepth2 = currentStackGuard.m_inliningDepth;
40 int inliningDepth3 = currentStackGuard.m_inliningDepth;
42 int stateFlags3 = task.m_stateFlags;
43 int stateFlags4 = task.m_stateFlags;
44 int inliningDepth4 = currentStackGuard.m_inliningDepth;
46 }
47 }
48 int inliningDepth5 = currentStackGuard.m_inliningDepth;
50 throw new OutOfMemoryException();
51 }
52
53 // Token: 0x06001443 RID: 5187 RVA: 0x0002A968 File Offset: 0x00028B68
54 protected internal virtual bool TryDequeue(Task task)
55 {
56 }
57
58 // Token: 0x06001444 RID: 5188 RVA: 0x0002A978 File Offset: 0x00028B78
59 internal virtual void NotifyWorkItemProgress()
60 {
61 }
62
63 // Token: 0x170001F8 RID: 504
64 // (get) Token: 0x06001445 RID: 5189 RVA: 0x0002A988 File Offset: 0x00028B88
65 internal virtual bool RequiresAtomicStartTransition
66 {
67 get
68 {
69 return true;
70 }
71 }
72
73 // Token: 0x06001446 RID: 5190 RVA: 0x0002A998 File Offset: 0x00028B98
74 protected TaskScheduler()
75 {
76 }
77
78 // Token: 0x170001F9 RID: 505
79 // (get) Token: 0x06001447 RID: 5191 RVA: 0x0002A9AC File Offset: 0x00028BAC
80 public static TaskScheduler Default
81 {
82 get
83 {
84 if (!true)
85 {
86 }
87 return 1;
88 }
89 }
90
91 // Token: 0x170001FA RID: 506
92 // (get) Token: 0x06001448 RID: 5192 RVA: 0x0002A9C0 File Offset: 0x00028BC0
93 public static TaskScheduler Current
94 {
95 get
96 {
97 if (!true)
98 {
99 }
100 if (TaskScheduler.InternalCurrent == null)
101 {
102 if (!true)
103 {
104 }
105 if (!true)
106 {
107 }
108 }
109 return 1;
110 }
111 }
112
113 // Token: 0x170001FB RID: 507
114 // (get) Token: 0x06001449 RID: 5193 RVA: 0x0002A9E0 File Offset: 0x00028BE0
116 {
117 get
118 {
119 if (!true)
120 {
121 }
122 if (!true)
123 {
124 return;
125 }
126 }
127 }
128
129 // Token: 0x170001FC RID: 508
130 // (get) Token: 0x0600144A RID: 5194 RVA: 0x0002A9F4 File Offset: 0x00028BF4
131 public int Id
132 {
133 get
134 {
135 /*
136An exception occurred when decompiling this method (0600144A)
137
138ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.Threading.Tasks.TaskScheduler::get_Id()
139
140 ---> System.Exception: Basic block has to end with unconditional control flow.
141{
142 Block_0:
143 brtrue(IL_0000, ldloc:int32[exp:bool](var_0_01))
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
148 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
149 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
150 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
151 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
152 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
153 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
154 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
155 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
156 --- End of inner exception stack trace ---
157 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
158 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
159*/;
160 }
161 }
162
163 // Token: 0x0600144B RID: 5195 RVA: 0x0002AA10 File Offset: 0x00028C10
165 {
166 if (!true)
167 {
168 }
169 if (!true)
170 {
171 }
172 if (true)
173 {
174 }
175 }
176
177 // Token: 0x0600144C RID: 5196 RVA: 0x0002AA3C File Offset: 0x00028C3C
178 // Note: this type is marked as 'beforefieldinit'.
180 {
181 }
182
183 // Token: 0x04000ABE RID: 2750
185
186 // Token: 0x04000ABF RID: 2751
187 internal static int s_taskSchedulerIdCounter;
188
189 // Token: 0x04000AC0 RID: 2752
190 private int m_taskSchedulerId;
191
192 // Token: 0x04000AC1 RID: 2753
194
195 // Token: 0x04000AC2 RID: 2754
197
198 // Token: 0x0200024F RID: 591
200 {
201 }
202 }
203}
class f__AnonymousType0<< Count > j__TPar
virtual bool TryDequeue(Task task)
static void PublishUnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs ueea)
bool TryExecuteTaskInline(Task task, bool taskWasPreviouslyQueued)
static readonly TaskScheduler s_defaultTaskScheduler
static readonly Lock _unobservedTaskExceptionLockObject
static EventHandler< UnobservedTaskExceptionEventArgs > _unobservedTaskException
bool TryRunInline(Task task, bool taskWasPreviouslyQueued)
static StackGuard CurrentStackGuard
Definition Task.2.cs:411