ProducerConsumerQueue

A lock-free single-reader, single-writer FIFO queue.

shared
struct ProducerConsumerQueue (
T
size_t capacity = roundPow2!(PAGE_SIZE / T.sizeof)
) {}

Members

Functions

pop
shared(T) pop()
Undocumented in source.
push
void push(shared(T) t)
Undocumented in source.

Properties

empty
bool empty [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
full
bool full [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
length
size_t length [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta