Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Collections.Concurrent.ConcurrentBag< T > Class Template Reference

Classes

class  Enumerator
 
class  WorkStealingQueue
 

Public Member Functions

 ConcurrentBag ()
 
 ConcurrentBag (IEnumerable< T > collection)
 
void Add (T item)
 
bool TryTake ([MaybeNullWhen(false)] out T result)
 
bool TryPeek ([MaybeNullWhen(false)] out T result)
 
void CopyTo (T[] array, int index)
 
T[] ToArray ()
 
void Clear ()
 
IEnumerator< TGetEnumerator ()
 

Properties

int Count [get]
 
int DangerousCount [get]
 
bool IsEmpty [get]
 
bool ICollection. IsSynchronized [get]
 
object ICollection. SyncRoot [get]
 
object GlobalQueuesLock [get]
 

Private Member Functions

bool IProducerConsumerCollection< T >. TryAdd (T item)
 
WorkStealingQueue GetCurrentThreadWorkStealingQueue (bool forceCreate)
 
WorkStealingQueue CreateWorkStealingQueueForCurrentThread ()
 
WorkStealingQueue GetUnownedWorkStealingQueue ()
 
bool TrySteal ([MaybeNullWhen(false)] out T result, bool take)
 
bool TryStealFromTo (WorkStealingQueue startInclusive, WorkStealingQueue endExclusive, [MaybeNullWhen(false)] out T result, bool take)
 
int CopyFromEachQueueToArray (T[] array, int index)
 
void ICollection. CopyTo (Array array, int index)
 
IEnumerator IEnumerable. GetEnumerator ()
 
void FreezeBag (ref bool lockTaken)
 
void UnfreezeBag (bool lockTaken)
 

Private Attributes

readonly ThreadLocal< WorkStealingQueue_locals
 
volatile WorkStealingQueue _workStealingQueues
 
long _emptyToNonEmptyListTransitionCount
 

Detailed Description

Definition at line 11 of file ConcurrentBag.cs.


The documentation for this class was generated from the following file: