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

◆ TrySteal() [2/2]

bool System.Threading.ThreadPoolWorkQueue.WorkStealingQueue.TrySteal ( [Out] IThreadPoolWorkItem obj,
bool missedSteal,
int millisecondsTimeout )
inlineprivate

Definition at line 231 of file ThreadPoolWorkQueue.cs.

232 {
233 int num = 1;
234 int headIndex = this.m_headIndex;
235 int tailIndex = this.m_tailIndex;
236 int tailIndex2 = this.m_tailIndex;
237 int mask = this.m_mask;
238 IThreadPoolWorkItem[] array = this.m_array;
239 long num2;
240 if (mask != 0)
241 {
242 IThreadPoolWorkItem[] array2 = this.m_array;
243 num2 = 0L;
244 missedSteal.m_value = num != 0;
245 }
246 if (num2 == 0L)
247 {
248 throw new OutOfMemoryException();
249 }
250 throw new OutOfMemoryException();
251 }
class f__AnonymousType0<< Count > j__TPar

References System.array, j__TPar, System.L, System.Threading.ThreadPoolWorkQueue.WorkStealingQueue.m_array, System.Threading.ThreadPoolWorkQueue.WorkStealingQueue.m_headIndex, System.Threading.ThreadPoolWorkQueue.WorkStealingQueue.m_mask, and System.Threading.ThreadPoolWorkQueue.WorkStealingQueue.m_tailIndex.