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
}
System.Threading.ThreadPoolWorkQueue.WorkStealingQueue.m_tailIndex
volatile int m_tailIndex
Definition
ThreadPoolWorkQueue.cs:74
System.Threading.ThreadPoolWorkQueue.WorkStealingQueue.m_foreignLock
SpinLock m_foreignLock
Definition
ThreadPoolWorkQueue.cs:76
System.Threading.ThreadPoolWorkQueue.WorkStealingQueue.m_headIndex
volatile int m_headIndex
Definition
ThreadPoolWorkQueue.cs:72
System.Threading.SpinLock.Enter
void Enter(ref bool lockTaken)
Definition
SpinLock.cs:94
System.Threading.SpinLock.Exit
void Exit()
Definition
SpinLock.cs:246
System
Threading
ThreadPoolWorkQueue
WorkStealingQueue
Generated by
1.10.0