Create a new atomic queue instance. initial_size
will be rounded up to the
nearest power of 2 and used as the initial size of the queue.
initial queue size
Get the amount of items in the queue.
Peek the head element of the queue without removing it from the queue.
Get the head element of the queue.
Append data
to the tail of the queue.
the data
Increase the refcount of queue
.
Unref queue
and free the memory when the refcount reaches 0.
Create a new atomic queue instance. initial_size
will be rounded up to the
nearest power of 2 and used as the initial size of the queue.
initial queue size
The #GstAtomicQueue object implements a queue that can be used from multiple threads without performing any blocking operations.