Struct MCSPQueue

Multiple consumers single producer queue

struct MCSPQueue(T, ulong size) ;

Properties

NameTypeDescription
effectiveCapacity[get] size_tReport the effective capacity of the queue.
isFull[get] boolReport whether the queue is currently full.

Methods

NameDescription
pop Pop a value from the queue
push push a value into the queue.

Parameters

NameDescription
T the type handled by the queue. Must be one that supports atomic operations.
size the number of raw elements in the queue (actual queue size will be somewhat smaller). Must be a power of 2.