예제 #1
0
 /// <summary>Adds an item to the end of the queue.</summary>
 /// <param name="item">The item to add.</param>
 public void Enqueue(T item)
 {
     _backing.Enqueue(item);
     Interlocked.Increment(ref _count);
 }
예제 #2
0
 /// <summary>Add a single item.</summary>
 /// <param name="item">Item to add.</param>
 public void Add(T item)
 {
     _backing.Enqueue(item);
 }