]public class AtomicQueue
The AtomicQueue object implements a queue that can be used from multiple threads without performing any blocking
- public uint length ()
Get the amount of items in the queue.
- public weak T peek<T> ()
Peek the head element of the queue without removing it from the queue.
- public T pop ()
Get the head element of the queue.
- public void push (owned T data)
data to the tail of the queue.
- public void @ref ()
Increase the refcount of this.
- public void unref ()
Unref this and free the memory when the
refcount reaches 0.