Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
Count
int
System.Collections.Concurrent.SingleProducerSingleConsumerQueue
<
T
>.Count
get
package
Definition at line
80
of file
SingleProducerSingleConsumerQueue.cs
.
81
{
82
get
83
{
84
int
num = 0;
85
for
(Segment
segment
=
_head
;
segment
!=
null
;
segment
=
segment
._next)
86
{
87
int
num2
=
segment
._array.Length;
88
int
first
;
89
int
last
;
90
do
91
{
92
first
=
segment
._state._first;
93
last
=
segment
._state._last;
94
}
95
while
(first !=
segment
._state._first);
96
num += (
last
-
first
) & (
num2
- 1);
97
}
98
return
num;
99
}
100
}
System.Collections.Concurrent.SingleProducerSingleConsumerQueue._head
volatile Segment _head
Definition
SingleProducerSingleConsumerQueue.cs:59
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.Linq.ExceptionArgument.first
@ first
System
Collections
Concurrent
SingleProducerSingleConsumerQueue
Generated by
1.10.0