DoubleBufferedQueueManagerT Class

Manages queues to reduce contention for a multi-threaded, multiple-producer, single-consumer scenario.

Definition

Namespace: Gemstone.Threading.Collections
Assembly: Gemstone.Threading (in Gemstone.Threading.dll) Version: 1.0.128 -- Release Build+d4a9a653be1def5888b9be91bb1825c8655f3529
public class DoubleBufferedQueueManager<T>
Inheritance
Object    DoubleBufferedQueueManagerT

Type Parameters

T
The types of items to be queued.

Remarks

For best results, each thread that is producing items to the consumer should call GetProducer to receive a producer object that will not contend with any other producer. The consumer should either provide a handler to process the queued items or poll the manager by calling Dequeue (not both!). It is not safe to use this class with multiple consumer threads.

Constructors

DoubleBufferedQueueManagerT Creates a new instance of the DoubleBufferedQueueManagerT class.
DoubleBufferedQueueManagerT(Action) Creates a new instance of the DoubleBufferedQueueManagerT class.
DoubleBufferedQueueManagerT(ActionIListT) Creates a new instance of the DoubleBufferedQueueManagerT class.
DoubleBufferedQueueManagerT(Action, ActionException) Creates a new instance of the DoubleBufferedQueueManagerT class.
DoubleBufferedQueueManagerT(ActionIListT, ActionException) Creates a new instance of the DoubleBufferedQueueManagerT class.

Properties

ItemsLeft Gets a flag that indicates whether there are any items left to be consumed after the last call to Dequeue.

Methods

Dequeue Dequeues a list of items produced by the DoubleBufferedQueueProducerTs.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetProducer Creates a producer used to produce items to the consumer of this DoubleBufferedQueueManagerT.
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also