Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Count

int System.Threading.ThreadPoolWorkQueue.WorkStealingQueue.Count
get

Definition at line 80 of file ThreadPoolWorkQueue.cs.

81 {
82 get
83 {
84 bool lockTaken = false;
85 try
86 {
87 m_foreignLock.Enter(ref lockTaken);
88 return Math.Max(0, m_tailIndex - m_headIndex);
89 }
90 finally
91 {
92 if (lockTaken)
93 {
94 m_foreignLock.Exit(useMemoryBarrier: false);
95 }
96 }
97 }
98 }
void Enter(ref bool lockTaken)
Definition SpinLock.cs:94