Struct MCSPQueue
Multiple consumers single producer queue
struct MCSPQueue(T, ulong size)
;
Properties
Name | Type | Description |
effectiveCapacity [get]
|
size_t | Report the effective capacity of the queue.
|
isFull [get]
|
bool | Report whether the queue is currently full.
|
Methods
Name | Description |
pop
|
Pop a value from the queue
|
push
|
push a value into the queue.
|
Parameters
Name | Description |
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. |