AtomicQueue
Object Hierarchy:
Description:
[ CCode ( ref_function = "gst_atomic_queue_ref" , type_id = "gst_atomic_queue_get_type ()" , unref_function = "gst_atomic_queue_unref" ) ]
[ Compact ]
public class AtomicQueue<T>
The AtomicQueue object implements a queue that can be used from multiple threads without performing any
blocking operations.
Content:
Creation methods:
Methods:
- public void @ref ()
Increase the refcount of this.
- public uint length ()
Get the amount of items in the queue.
- public unowned 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)
Append data
to the tail of the queue.
- public void unref ()
Unref this and free the memory when
the refcount reaches 0.