Terraria v1.4.4.9
Terraria source code documentation
|
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< T > | GetEnumerator () |
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 |
Definition at line 11 of file ConcurrentBag.cs.