/// <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); }
/// <summary>Add a single item.</summary> /// <param name="item">Item to add.</param> public void Add(T item) { _backing.Enqueue(item); }