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

Classes

class  Node
 

Public Member Functions

 ConcurrentStack ()
 
 ConcurrentStack (IEnumerable< T > collection)
 
void Clear ()
 
void CopyTo (T[] array, int index)
 
void Push (T item)
 
void PushRange (T[] items)
 
void PushRange (T[] items, int startIndex, int count)
 
bool TryPeek ([MaybeNullWhen(false)] out T result)
 
bool TryPop ([MaybeNullWhen(false)] out T result)
 
int TryPopRange (T[] items)
 
int TryPopRange (T[] items, int startIndex, int count)
 
T[] ToArray ()
 
IEnumerator< TGetEnumerator ()
 

Properties

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

Private Member Functions

void InitializeFromCollection (IEnumerable< T > collection)
 
void ICollection. CopyTo (Array array, int index)
 
void PushCore (Node head, Node tail)
 
bool IProducerConsumerCollection< T >. TryAdd (T item)
 
bool TryPopCore ([MaybeNullWhen(false)] out T result)
 
int TryPopCore (int count, out Node poppedHead)
 
bool IProducerConsumerCollection< T >. TryTake ([MaybeNullWhen(false)] out T item)
 
List< TToList ()
 
List< TToList (Node curr)
 
IEnumerator< TGetEnumerator (Node head)
 
IEnumerator IEnumerable. GetEnumerator ()
 

Static Private Member Functions

static void ValidatePushPopRangeInput (T[] items, int startIndex, int count)
 
static void CopyRemovedItems (Node head, T[] collection, int startIndex, int nodesCount)
 

Private Attributes

volatile Node _head
 

Detailed Description

Definition at line 10 of file ConcurrentStack.cs.


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