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
Thread.cs
Go to the documentation of this file.
1using System;
9
10namespace System.Threading
11{
12 // Token: 0x020001F8 RID: 504
13 [StructLayout(0)]
14 public sealed class Thread : CriticalFinalizerObject
15 {
16 // Token: 0x060011E7 RID: 4583 RVA: 0x00025FEC File Offset: 0x000241EC
18 {
19 !0 <CurrentValue>k__BackingField = args.<CurrentValue>k__BackingField;
20 }
21
22 // Token: 0x060011E8 RID: 4584 RVA: 0x00026000 File Offset: 0x00024200
24 {
25 !0 <CurrentValue>k__BackingField = args.<CurrentValue>k__BackingField;
26 }
27
28 // Token: 0x060011E9 RID: 4585 RVA: 0x00026014 File Offset: 0x00024214
30 {
31 do
32 {
33 base..ctor();
34 }
35 while (start == null);
36 long num = 0L;
37 this.SetStartHelper(start, (int)num);
38 }
39
40 // Token: 0x060011EA RID: 4586 RVA: 0x00026034 File Offset: 0x00024234
42 {
43 do
44 {
45 base..ctor();
46 }
47 while (start == null);
48 long num = 0L;
49 this.SetStartHelper(start, (int)num);
50 }
51
52 // Token: 0x060011EB RID: 4587 RVA: 0x00026054 File Offset: 0x00024254
56
57 // Token: 0x060011EC RID: 4588 RVA: 0x00026074 File Offset: 0x00024274
58 public void Start()
59 {
60 }
61
62 // Token: 0x060011ED RID: 4589 RVA: 0x00026084 File Offset: 0x00024284
63 public void Start(object parameter)
64 {
65 if (this.m_Delegate != null)
66 {
67 }
69 }
70
71 // Token: 0x060011EE RID: 4590 RVA: 0x000260AC File Offset: 0x000242AC
73 {
75 if (@delegate == null || @delegate.m_target != null)
76 {
77 }
78 }
79
80 // Token: 0x060011EF RID: 4591 RVA: 0x000260D4 File Offset: 0x000242D4
81 [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
83 {
84 /*
85An exception occurred when decompiling this method (060011EF)
86
87ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Threading.ExecutionContext/Reader System.Threading.Thread::GetExecutionContextReader()
88
89 ---> System.Exception: Basic block has to end with unconditional control flow.
90{
91 Block_0:
92 stloc:ExecutionContext(var_0_06, ldfld:ExecutionContext(Thread::m_ExecutionContext, ldloc:Thread(this)))
93}
94
95 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
96 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
97 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
98 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
99 --- End of inner exception stack trace ---
100 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
101 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
102*/;
103 }
104
105 // Token: 0x170001B1 RID: 433
106 // (get) Token: 0x060011F0 RID: 4592 RVA: 0x000260E8 File Offset: 0x000242E8
107 // (set) Token: 0x060011F1 RID: 4593 RVA: 0x000260FC File Offset: 0x000242FC
109 {
110 get
111 {
112 /*
113An exception occurred when decompiling this method (060011F0)
114
115ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Threading.Thread::get_ExecutionContextBelongsToCurrentScope()
116
117 ---> System.Exception: Basic block has to end with unconditional control flow.
118{
119 Block_0:
120 stloc:bool(var_0_06, ldfld:bool(Thread::m_ExecutionContextBelongsToOuterScope, ldloc:Thread(this)))
121}
122
123 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
124 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
125 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
126 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
127 --- End of inner exception stack trace ---
128 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
129 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
130*/;
131 }
132 set
133 {
134 }
135 }
136
137 // Token: 0x060011F2 RID: 4594 RVA: 0x0002610C File Offset: 0x0002430C
138 [ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail)]
151
152 // Token: 0x060011F3 RID: 4595 RVA: 0x0002613C File Offset: 0x0002433C
153 [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
158
159 // Token: 0x060011F4 RID: 4596 RVA: 0x00026150 File Offset: 0x00024350
160 [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
165
166 // Token: 0x060011F5 RID: 4597 RVA: 0x00026164 File Offset: 0x00024364
167 public void Interrupt()
168 {
169 }
170
171 // Token: 0x060011F6 RID: 4598 RVA: 0x00026174 File Offset: 0x00024374
172 private void InterruptInternal()
173 {
174 }
175
176 // Token: 0x170001B2 RID: 434
177 // (set) Token: 0x060011F7 RID: 4599 RVA: 0x00026184 File Offset: 0x00024384
179 {
180 set
181 {
182 }
183 }
184
185 // Token: 0x060011F8 RID: 4600 RVA: 0x00026194 File Offset: 0x00024394
186 private void SetPriorityNative(int priority)
187 {
188 }
189
190 // Token: 0x060011F9 RID: 4601 RVA: 0x0000207A File Offset: 0x0000027A
191 private bool JoinInternal(int millisecondsTimeout)
192 {
193 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
194 }
195
196 // Token: 0x060011FA RID: 4602 RVA: 0x000261A4 File Offset: 0x000243A4
197 public void Join()
198 {
199 }
200
201 // Token: 0x060011FB RID: 4603 RVA: 0x000261B4 File Offset: 0x000243B4
202 private static void SleepInternal(int millisecondsTimeout)
203 {
204 }
205
206 // Token: 0x060011FC RID: 4604 RVA: 0x000261C4 File Offset: 0x000243C4
207 public static void Sleep(int millisecondsTimeout)
208 {
209 }
210
211 // Token: 0x060011FD RID: 4605 RVA: 0x000261DC File Offset: 0x000243DC
212 public static void Sleep(TimeSpan timeout)
213 {
214 double totalMilliseconds = timeout.TotalMilliseconds;
215 }
216
217 // Token: 0x060011FE RID: 4606 RVA: 0x0000207A File Offset: 0x0000027A
218 private static bool YieldInternal()
219 {
220 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
221 }
222
223 // Token: 0x060011FF RID: 4607 RVA: 0x0000207A File Offset: 0x0000027A
224 public static bool Yield()
225 {
226 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
227 }
228
229 // Token: 0x06001200 RID: 4608 RVA: 0x00026204 File Offset: 0x00024404
231 {
233 if (start != null)
234 {
235 }
236 }
237
238 // Token: 0x170001B3 RID: 435
239 // (get) Token: 0x06001201 RID: 4609 RVA: 0x00026230 File Offset: 0x00024430
240 // (set) Token: 0x06001202 RID: 4610 RVA: 0x00026240 File Offset: 0x00024440
242 {
243 get
244 {
246 return cultureInfo;
247 }
248 set
249 {
250 while (value == null)
251 {
252 }
253 int num = 1;
254 bool flag = CultureInfo.VerifyCultureName(value, num != 0);
256 }
257 }
258
259 // Token: 0x06001203 RID: 4611 RVA: 0x00026264 File Offset: 0x00024464
261 {
262 if (true)
263 {
264 }
265 if (!true)
266 {
267 }
270 {
272 }
273 if (!true)
274 {
275 }
277 }
278
279 // Token: 0x170001B4 RID: 436
280 // (get) Token: 0x06001204 RID: 4612 RVA: 0x00026290 File Offset: 0x00024490
281 // (set) Token: 0x06001205 RID: 4613 RVA: 0x000262A0 File Offset: 0x000244A0
283 {
284 get
285 {
287 return cultureInfo;
288 }
289 set
290 {
291 int num;
292 do
293 {
294 num = 1;
295 }
296 while (value == null);
297 if (num == 0 && num == 0)
298 {
300 }
301 }
302 }
303
304 // Token: 0x06001206 RID: 4614 RVA: 0x000262C0 File Offset: 0x000244C0
306 {
307 if (true)
308 {
309 }
310 if (!true)
311 {
312 }
314 if (defaultThreadCurrentCulture != null)
315 {
317 }
318 if (!true)
319 {
320 }
322 }
323
324 // Token: 0x06001207 RID: 4615 RVA: 0x000262EC File Offset: 0x000244EC
333
334 // Token: 0x06001208 RID: 4616 RVA: 0x0002630C File Offset: 0x0002450C
335 public static void MemoryBarrier()
336 {
337 }
338
339 // Token: 0x06001209 RID: 4617 RVA: 0x0002631C File Offset: 0x0002451C
341 {
342 }
343
344 // Token: 0x170001B5 RID: 437
345 // (get) Token: 0x0600120A RID: 4618 RVA: 0x0002632C File Offset: 0x0002452C
347 {
348 get
349 {
350 while (this.internal_thread != null)
351 {
352 }
353 return this.internal_thread;
354 }
355 }
356
357 // Token: 0x170001B6 RID: 438
358 // (get) Token: 0x0600120B RID: 4619 RVA: 0x00026348 File Offset: 0x00024548
360 {
361 get
362 {
364 }
365 }
366
367 // Token: 0x0600120C RID: 4620 RVA: 0x0002635C File Offset: 0x0002455C
368 private static void GetCurrentThread_icall(Thread thread)
369 {
370 }
371
372 // Token: 0x0600120D RID: 4621 RVA: 0x0000207A File Offset: 0x0000027A
373 private static Thread GetCurrentThread()
374 {
375 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
376 }
377
378 // Token: 0x170001B7 RID: 439
379 // (get) Token: 0x0600120E RID: 4622 RVA: 0x0000207A File Offset: 0x0000027A
380 public static Thread CurrentThread
381 {
382 [ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail)]
383 get
384 {
385 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
386 }
387 }
388
389 // Token: 0x0600120F RID: 4623 RVA: 0x0000207A File Offset: 0x0000027A
390 public static int GetDomainID()
391 {
392 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
393 }
394
395 // Token: 0x06001210 RID: 4624 RVA: 0x0000207A File Offset: 0x0000027A
397 {
398 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
399 }
400
401 // Token: 0x06001211 RID: 4625 RVA: 0x0002636C File Offset: 0x0002456C
402 [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
403 protected override void Finalize()
404 {
405 base.Finalize();
406 }
407
408 // Token: 0x170001B8 RID: 440
409 // (get) Token: 0x06001212 RID: 4626 RVA: 0x00026380 File Offset: 0x00024580
411 {
412 get
413 {
414 while (this.internal_thread != null)
415 {
416 }
418 }
419 }
420
421 // Token: 0x170001B9 RID: 441
422 // (get) Token: 0x06001213 RID: 4627 RVA: 0x000263A0 File Offset: 0x000245A0
424 {
425 get
426 {
427 while (this.internal_thread != null)
428 {
429 }
431 }
432 }
433
434 // Token: 0x170001BA RID: 442
435 // (get) Token: 0x06001214 RID: 4628 RVA: 0x000263C0 File Offset: 0x000245C0
436 public bool IsAlive
437 {
438 get
439 {
440 if (this.internal_thread == null)
441 {
443 return;
444 }
445 }
446 }
447
448 // Token: 0x170001BB RID: 443
449 // (set) Token: 0x06001215 RID: 4629 RVA: 0x000263E0 File Offset: 0x000245E0
450 public bool IsBackground
451 {
452 set
453 {
455 if (this.internal_thread == null)
456 {
458 }
459 }
460 }
461
462 // Token: 0x06001216 RID: 4630 RVA: 0x0000207A File Offset: 0x0000027A
463 private static string GetName_internal(InternalThread thread)
464 {
465 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
466 }
467
468 // Token: 0x06001217 RID: 4631 RVA: 0x00026404 File Offset: 0x00024604
469 private unsafe static void SetName_icall(InternalThread thread, char* name, int nameLength)
470 {
471 }
472
473 // Token: 0x06001218 RID: 4632 RVA: 0x00026414 File Offset: 0x00024614
474 private static void SetName_internal(InternalThread thread, string name)
475 {
476 if (name != null)
477 {
479 int stringLength = name._stringLength;
480 return;
481 }
482 }
483
484 // Token: 0x170001BC RID: 444
485 // (get) Token: 0x06001219 RID: 4633 RVA: 0x00026434 File Offset: 0x00024634
486 // (set) Token: 0x0600121A RID: 4634 RVA: 0x00026450 File Offset: 0x00024650
487 public string Name
488 {
489 get
490 {
491 /*
492An exception occurred when decompiling this method (06001219)
493
494ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.Threading.Thread::get_Name()
495
496 ---> System.Exception: Basic block has to end with unconditional control flow.
497{
498 Block_0:
499 stloc:InternalThread(var_0_0E, ldfld:InternalThread(Thread::internal_thread, ldloc:Thread(this)))
500}
501
502 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
503 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
504 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
505 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
506 --- End of inner exception stack trace ---
507 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
508 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
509*/;
510 }
511 set
512 {
513 while (this.internal_thread != null)
514 {
515 }
517 }
518 }
519
520 // Token: 0x170001BD RID: 445
521 // (get) Token: 0x0600121B RID: 4635 RVA: 0x00026474 File Offset: 0x00024674
523 {
524 get
525 {
526 /*
527An exception occurred when decompiling this method (0600121B)
528
529ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Threading.ThreadState System.Threading.Thread::get_ThreadState()
530
531 ---> System.Exception: Basic block has to end with unconditional control flow.
532{
533 Block_0:
534 stloc:InternalThread(var_0_0E, ldfld:InternalThread(Thread::internal_thread, ldloc:Thread(this)))
535}
536
537 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
538 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
539 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
540 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
541 --- End of inner exception stack trace ---
542 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
543 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
544*/;
545 }
546 }
547
548 // Token: 0x0600121C RID: 4636 RVA: 0x00026490 File Offset: 0x00024690
549 private static void Abort_internal(InternalThread thread, object stateInfo)
550 {
551 }
552
553 // Token: 0x0600121D RID: 4637 RVA: 0x000264A0 File Offset: 0x000246A0
554 public void Abort()
555 {
556 if (this.internal_thread == null)
557 {
559 }
560 }
561
562 // Token: 0x0600121E RID: 4638 RVA: 0x000264BC File Offset: 0x000246BC
563 private static void SpinWait_nop()
564 {
565 }
566
567 // Token: 0x0600121F RID: 4639 RVA: 0x000264CC File Offset: 0x000246CC
568 [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
569 public static void SpinWait(int iterations)
570 {
571 }
572
573 // Token: 0x06001220 RID: 4640 RVA: 0x000264DC File Offset: 0x000246DC
578
579 // Token: 0x06001221 RID: 4641 RVA: 0x000264F0 File Offset: 0x000246F0
580 private static void SetState(InternalThread thread, ThreadState set)
581 {
582 }
583
584 // Token: 0x06001222 RID: 4642 RVA: 0x00026500 File Offset: 0x00024700
585 private static void ClrState(InternalThread thread, ThreadState clr)
586 {
587 }
588
589 // Token: 0x06001223 RID: 4643 RVA: 0x0000207A File Offset: 0x0000027A
590 private static ThreadState GetState(InternalThread thread)
591 {
592 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
593 }
594
595 // Token: 0x06001224 RID: 4644 RVA: 0x0000207A File Offset: 0x0000027A
596 private static int SystemMaxStackStize()
597 {
598 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
599 }
600
601 // Token: 0x06001225 RID: 4645 RVA: 0x00026510 File Offset: 0x00024710
603 {
604 int num = 1;
605 int pageSize = Environment.GetPageSize();
606 if (num != 0)
607 {
608 }
609 return Math.Min(0, pageSize);
610 }
611
612 // Token: 0x06001226 RID: 4646 RVA: 0x00026538 File Offset: 0x00024738
614 {
616 do
617 {
620 }
621 while (internalThread != null);
623 }
624
625 // Token: 0x170001BE RID: 446
626 // (get) Token: 0x06001227 RID: 4647 RVA: 0x00026564 File Offset: 0x00024764
628 {
629 [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
630 get
631 {
632 while (this.internal_thread != null)
633 {
634 }
635 return this.internal_thread.managed_id;
636 }
637 }
638
639 // Token: 0x06001228 RID: 4648 RVA: 0x00026584 File Offset: 0x00024784
640 [ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail)]
641 public static void BeginCriticalRegion()
642 {
644 do
645 {
647 }
648 while (currentThread.internal_thread != null);
649 int critical_region_level = currentThread.internal_thread.critical_region_level;
650 }
651
652 // Token: 0x06001229 RID: 4649 RVA: 0x000265AC File Offset: 0x000247AC
653 [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
654 public static void EndCriticalRegion()
655 {
657 do
658 {
660 }
661 while (currentThread.internal_thread != null);
662 int critical_region_level = currentThread.internal_thread.critical_region_level;
663 }
664
665 // Token: 0x0600122A RID: 4650 RVA: 0x000265D4 File Offset: 0x000247D4
667 {
668 bool flag = this.TrySetApartmentState(state);
669 }
670
671 // Token: 0x0600122B RID: 4651 RVA: 0x000265EC File Offset: 0x000247EC
673 {
675 do
676 {
679 if (this.internal_thread == null)
680 {
681 internalThread = this.internal_thread;
682 }
683 byte apartment_state = internalThread.apartment_state;
684 if (internalThread == null)
685 {
687 byte apartment_state2 = internalThread2.apartment_state;
688 }
689 }
690 while (internalThread2 != null);
692 return true;
693 }
694
695 // Token: 0x0600122C RID: 4652 RVA: 0x0002663C File Offset: 0x0002483C
696 [ComVisible(false)]
697 public override int GetHashCode()
698 {
699 while (this.internal_thread != null)
700 {
701 }
702 return this.internal_thread.managed_id;
703 }
704
705 // Token: 0x0600122D RID: 4653 RVA: 0x0002665C File Offset: 0x0002485C
707 {
708 /*
709An exception occurred when decompiling this method (0600122D)
710
711ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Threading.ThreadState System.Threading.Thread::ValidateThreadState()
712
713 ---> System.Exception: Basic block has to end with unconditional control flow.
714{
715 Block_0:
716 stloc:InternalThread(var_0_0E, ldfld:InternalThread(Thread::internal_thread, ldloc:Thread(this)))
717}
718
719 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
720 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
721 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
722 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
723 --- End of inner exception stack trace ---
724 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
725 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
726*/;
727 }
728
729 // Token: 0x040009A0 RID: 2464
731
732 // Token: 0x040009A1 RID: 2465
735
736 // Token: 0x040009A2 RID: 2466
739
740 // Token: 0x040009A3 RID: 2467
743
744 // Token: 0x040009A4 RID: 2468
746
747 // Token: 0x040009A5 RID: 2469
749
750 // Token: 0x040009A6 RID: 2470
752
753 // Token: 0x040009A7 RID: 2471
754 private object m_ThreadStartArg;
755
756 // Token: 0x040009A8 RID: 2472
757 private object pending_exception;
758
759 // Token: 0x040009A9 RID: 2473
761 private static Thread current_thread;
762
763 // Token: 0x040009AA RID: 2474
765
766 // Token: 0x040009AB RID: 2475
768
769 // Token: 0x040009AC RID: 2476
771
772 // Token: 0x040009AD RID: 2477
774
775 // Token: 0x040009AE RID: 2478
776 private int principal_version;
777 }
778}
class f__AnonymousType0<< Count > j__TPar
static Context InternalGetContext()
Definition AppDomain.cs:177
object m_target
Definition Delegate.cs:374
static int GetPageSize()
static CultureInfo DefaultThreadCurrentCulture
static bool VerifyCultureName(string cultureName, bool throwException)
static CultureInfo ConstructCurrentCulture()
static CultureInfo UserDefaultCulture
static CultureInfo UserDefaultUICulture
static CultureInfo DefaultThreadCurrentUICulture
static CultureInfo ConstructCurrentUICulture()
static byte Min(byte val1, byte val2)
Definition Math.cs:152
void SetStartHelper(Delegate start, int maxStackSize)
Definition Thread.cs:230
static unsafe void SetName_icall(InternalThread thread, char *name, int nameLength)
Definition Thread.cs:469
static LocalDataStoreHolder s_LocalDataStore
Definition Thread.cs:734
static bool Yield()
Definition Thread.cs:224
ExecutionContext m_ExecutionContext
Definition Thread.cs:767
CultureInfo GetCurrentUICultureNoAppX()
Definition Thread.cs:260
static Context CurrentContext
Definition Thread.cs:360
ThreadState ValidateThreadState()
Definition Thread.cs:706
bool TrySetApartmentState(ApartmentState state)
Definition Thread.cs:672
static void Sleep(int millisecondsTimeout)
Definition Thread.cs:207
static AsyncLocal< CultureInfo > s_asyncLocalCurrentCulture
Definition Thread.cs:745
void SetExecutionContext(ExecutionContext.Reader value, bool belongsToCurrentScope)
Definition Thread.cs:161
override void Finalize()
Definition Thread.cs:403
Thread(ParameterizedThreadStart start)
Definition Thread.cs:41
static int GetProcessDefaultStackSize(int maxStackSize)
Definition Thread.cs:602
MulticastDelegate m_Delegate
Definition Thread.cs:764
static void SetName_internal(InternalThread thread, string name)
Definition Thread.cs:474
void SetApartmentState(ApartmentState state)
Definition Thread.cs:666
static void SetState(InternalThread thread, ThreadState set)
Definition Thread.cs:580
static CultureInfo m_CurrentCulture
Definition Thread.cs:738
static CultureInfo m_CurrentUICulture
Definition Thread.cs:742
void SetStart(MulticastDelegate start, int maxStackSize)
Definition Thread.cs:613
CultureInfo GetCurrentCultureNoAppX()
Definition Thread.cs:305
Thread(ParameterizedThreadStart start, int maxStackSize)
Definition Thread.cs:53
static Thread GetCurrentThread()
Definition Thread.cs:373
void SetPriorityNative(int priority)
Definition Thread.cs:186
static void EndCriticalRegion()
Definition Thread.cs:654
bool ExecutionContextBelongsToCurrentScope
Definition Thread.cs:109
void Start(StackCrawlMark stackMark)
Definition Thread.cs:72
static int SystemMaxStackStize()
Definition Thread.cs:596
static Thread current_thread
Definition Thread.cs:761
override int GetHashCode()
Definition Thread.cs:697
static void AsyncLocalSetCurrentCulture(AsyncLocalValueChangedArgs< CultureInfo > args)
Definition Thread.cs:17
ExecutionContext.Reader GetExecutionContextReader()
Definition Thread.cs:82
static void nativeInitCultureAccessors()
Definition Thread.cs:325
static LocalDataStoreMgr s_LocalDataStoreMgr
Definition Thread.cs:730
Thread(ThreadStart start)
Definition Thread.cs:29
IPrincipal principal
Definition Thread.cs:773
bool JoinInternal(int millisecondsTimeout)
Definition Thread.cs:191
ThreadPriority Priority
Definition Thread.cs:179
bool m_ExecutionContextBelongsToOuterScope
Definition Thread.cs:770
static Thread CurrentThread
Definition Thread.cs:381
static AsyncLocal< CultureInfo > s_asyncLocalCurrentUICulture
Definition Thread.cs:748
static void MemoryBarrier()
Definition Thread.cs:335
bool IsThreadPoolThreadInternal
Definition Thread.cs:424
static int GetDomainID()
Definition Thread.cs:390
static void Abort_internal(InternalThread thread, object stateInfo)
Definition Thread.cs:549
ThreadState ThreadState
Definition Thread.cs:523
static void SleepInternal(int millisecondsTimeout)
Definition Thread.cs:202
static void AsyncLocalSetCurrentUICulture(AsyncLocalValueChangedArgs< CultureInfo > args)
Definition Thread.cs:23
static void GetCurrentThread_icall(Thread thread)
Definition Thread.cs:368
void Start(object parameter)
Definition Thread.cs:63
static void Sleep(TimeSpan timeout)
Definition Thread.cs:212
InternalThread internal_thread
Definition Thread.cs:751
ExecutionContext GetMutableExecutionContext()
Definition Thread.cs:139
CultureInfo CurrentCulture
Definition Thread.cs:283
static void SpinWait_nop()
Definition Thread.cs:563
CultureInfo CurrentUICulture
Definition Thread.cs:242
static string GetName_internal(InternalThread thread)
Definition Thread.cs:463
static void SpinWait(int iterations)
Definition Thread.cs:569
static void ClrState(InternalThread thread, ThreadState clr)
Definition Thread.cs:585
bool Thread_internal(MulticastDelegate start)
Definition Thread.cs:396
void SetExecutionContext(ExecutionContext value, bool belongsToCurrentScope)
Definition Thread.cs:154
void StartInternal(object principal, StackCrawlMark stackMark)
Definition Thread.cs:574
static bool YieldInternal()
Definition Thread.cs:218
static void BeginCriticalRegion()
Definition Thread.cs:641
static ThreadState GetState(InternalThread thread)
Definition Thread.cs:590
void ConstructInternalThread()
Definition Thread.cs:340
double TotalMilliseconds
Definition TimeSpan.cs:117