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

◆ Wait()

bool System.Threading.ManualResetEventSlim.Wait ( int millisecondsTimeout,
CancellationToken cancellationToken )
inlineinherited

Definition at line 234 of file ManualResetEventSlim.cs.

235 {
236 int num = 1;
237 this.ThrowIfDisposed();
238 bool isSet = this.IsSet;
239 if (millisecondsTimeout != 0)
240 {
242 int spinCount = this.SpinCount;
243 int num2 = 10;
244 bool isSet2 = this.IsSet;
245 if (num == 0)
246 {
247 }
249 if (num == 0)
250 {
251 }
252 object @lock = this.m_lock;
253 bool isSet3 = this.IsSet;
255 int waiters = this.Waiters;
256 bool isSet4 = this.IsSet;
257 object lock2 = this.m_lock;
258 long num3 = 0L;
259 bool flag = Monitor.Wait(lock2, millisecondsTimeout, num3 != 0L);
260 long num4 = 0L;
261 int waiters2 = this.Waiters;
262 this.Waiters = millisecondsTimeout;
263 if (num4 != 0L)
264 {
265 throw new OutOfMemoryException();
266 }
267 while (num2 == 0)
268 {
269 }
270 long num5 = 0L;
271 if (num != 0)
272 {
273 }
274 if (num5 != 0L)
275 {
276 throw new OutOfMemoryException();
277 }
278 }
279 if (false)
280 {
281 throw new OutOfMemoryException();
282 }
283 long num6 = 0L;
284 if (num != 0)
285 {
286 }
287 if (num6 == 0L)
288 {
289 throw new OutOfMemoryException();
290 }
291 throw new OutOfMemoryException();
292 }
class f__AnonymousType0<< Count > j__TPar
static int TickCount

References System.Threading.ManualResetEventSlim.EnsureLockObjectCreated(), System.Threading.ManualResetEventSlim.IsSet, j__TPar, System.L, System.Threading.ManualResetEventSlim.m_lock, System.Threading.ManualResetEventSlim.SpinCount, System.Threading.ManualResetEventSlim.ThrowIfDisposed(), System.Environment.TickCount, System.Threading.Monitor.Wait(), and System.Threading.ManualResetEventSlim.Waiters.