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
AsyncActionDispatcher.cs
Go to the documentation of this file.
1using System;
5
7{
8 // Token: 0x02000B0F RID: 2831
10 {
11 // Token: 0x170008EF RID: 2287
12 // (get) Token: 0x06005302 RID: 21250 RVA: 0x00283C90 File Offset: 0x00281E90
14 {
15 get
16 {
17 return this._actionQueue.Count;
18 }
19 }
20
21 // Token: 0x170008F0 RID: 2288
22 // (get) Token: 0x06005303 RID: 21251 RVA: 0x00283CA8 File Offset: 0x00281EA8
23 // (set) Token: 0x06005304 RID: 21252 RVA: 0x00283CBC File Offset: 0x00281EBC
24 public bool IsDisposed
25 {
27 get
28 {
29 return this.<IsDisposed>k__BackingField;
30 }
32 private set
33 {
34 }
35 }
36
37 // Token: 0x170008F1 RID: 2289
38 // (get) Token: 0x06005305 RID: 21253 RVA: 0x00283CCC File Offset: 0x00281ECC
39 public bool IsRunning
40 {
41 get
42 {
43 return this._isRunning;
44 }
45 }
46
47 // Token: 0x06005306 RID: 21254 RVA: 0x00283CE0 File Offset: 0x00281EE0
52
53 // Token: 0x06005307 RID: 21255 RVA: 0x00283CF4 File Offset: 0x00281EF4
54 public void Start()
55 {
56 while (this._isRunning)
57 {
58 }
59 this._isRunning = true;
60 }
61
62 // Token: 0x06005308 RID: 21256 RVA: 0x00283D10 File Offset: 0x00281F10
63 public void Stop()
64 {
65 while (!this._isRunning)
66 {
67 }
69 this._actionThread.Join();
70 }
71
72 // Token: 0x06005309 RID: 21257 RVA: 0x00283D3C File Offset: 0x00281F3C
73 private void LoaderThreadStart()
74 {
75 if (this._isRunning)
76 {
79 Action action = actionQueue.Take(token);
80 IntPtr method = action.method;
81 IntPtr invoke_impl = action.invoke_impl;
82 IntPtr method_code = action.method_code;
83 return;
84 }
85 }
86
87 // Token: 0x0600530A RID: 21258 RVA: 0x00283D8C File Offset: 0x00281F8C
88 protected virtual void Dispose(bool disposing)
89 {
90 if (!this.<IsDisposed>k__BackingField)
91 {
92 if (this._isRunning)
93 {
94 this.Stop();
95 }
96 this._actionQueue.Dispose();
98 this.<IsDisposed>k__BackingField = true;
99 }
100 }
101
102 // Token: 0x0600530B RID: 21259 RVA: 0x00283DCC File Offset: 0x00281FCC
103 public void Dispose()
104 {
105 }
106
107 // Token: 0x0600530C RID: 21260 RVA: 0x00283DDC File Offset: 0x00281FDC
109 {
110 }
111
112 // Token: 0x04008AE7 RID: 35559
114
115 // Token: 0x04008AE8 RID: 35560
117
118 // Token: 0x04008AE9 RID: 35561
120
121 // Token: 0x04008AEA RID: 35562
122 private bool _isRunning;
123
124 // Token: 0x04008AEB RID: 35563
126 private bool <IsDisposed>k__BackingField;
127 }
128}
class f__AnonymousType0<< Count > j__TPar
readonly CancellationTokenSource _threadCancellation
readonly BlockingCollection< Action > _actionQueue