Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
Count
int
System.Collections.Concurrent.ConcurrentBag
<
T
>.Count
get
Implements
System.Collections.ICollection
.
Definition at line
313
of file
ConcurrentBag.cs
.
314
{
315
get
316
{
317
if
(
_workStealingQueues
==
null
)
318
{
319
return
0;
320
}
321
bool
lockTaken
=
false
;
322
try
323
{
324
FreezeBag
(
ref
lockTaken
);
325
return
DangerousCount
;
326
}
327
finally
328
{
329
UnfreezeBag
(
lockTaken
);
330
}
331
}
332
}
System.Collections.Concurrent.ConcurrentBag.DangerousCount
int DangerousCount
Definition
ConcurrentBag.cs:335
System.Collections.Concurrent.ConcurrentBag.UnfreezeBag
void UnfreezeBag(bool lockTaken)
Definition
ConcurrentBag.cs:697
System.Collections.Concurrent.ConcurrentBag.FreezeBag
void FreezeBag(ref bool lockTaken)
Definition
ConcurrentBag.cs:674
System.Collections.Concurrent.ConcurrentBag._workStealingQueues
volatile WorkStealingQueue _workStealingQueues
Definition
ConcurrentBag.cs:309
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System
Collections
Concurrent
ConcurrentBag
Generated by
1.10.0