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

◆ WaitForCompletion()

object System.Net.LazyAsyncResult.WaitForCompletion ( bool snap)
inlineprivate

Definition at line 335 of file LazyAsyncResult.cs.

336 {
337 if (this.m_IntCompleted == 0)
338 {
339 }
340 long num;
341 if (!false)
342 {
343 object @event = this.m_Event;
344 if (@event != null)
345 {
346 num = 0L;
347 if (@event != null)
348 {
349 goto IL_0020;
350 }
351 }
352 if (@event == null)
353 {
354 goto IL_008C;
355 }
356 }
357 IL_0020:
358 long num2 = 0L;
359 int num3 = 5;
360 object event2;
361 if (num != 0L && !this.m_UserEvent)
362 {
363 event2 = this.m_Event;
364 if (event2 != null)
365 {
366 }
367 }
368 if (num2 != 0L)
369 {
370 throw new OutOfMemoryException();
371 }
372 if (num3 != 0)
373 {
374 return event2;
375 }
376 Thread.SpinWait(1);
377 IL_008C:
378 object result = this.m_Result;
379 return this.m_Result;
380 }
class f__AnonymousType0<< Count > j__TPar
static void SpinWait(int iterations)
Definition Thread.cs:569

References j__TPar, System.L, System.Net.LazyAsyncResult.m_Event, System.Net.LazyAsyncResult.m_IntCompleted, System.Net.LazyAsyncResult.m_Result, System.Net.LazyAsyncResult.m_UserEvent, and System.Threading.Thread.SpinWait().

Referenced by System.Net.LazyAsyncResult.InternalWaitForCompletion().