Queue

Basic interface for all queues implemented here. Is an input and output range.

Members

Functions

dequeue
T dequeue()

Atomically take one element from the queue. Wait blocking or spinning.

enqueue
void enqueue(T t)

Atomically put one element into the queue.

tryDequeue
bool tryDequeue(T e)

If at least one element is in the queue, atomically take one element from the queue store it into e, and return true. Otherwise return false;

Meta