Gst.AtomicQueue¶
Fields¶
None
Details¶
- 
class Gst.AtomicQueue¶
- The - Gst.AtomicQueueobject implements a queue that can be used from multiple threads without performing any blocking operations.- 
classmethod new(initial_size)[source]¶
- Parameters: - initial_size ( - int) – initial queue size- Returns: - a new - Gst.AtomicQueue- Return type: - Gst.AtomicQueue- 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. 
 - 
length()[source]¶
- Returns: - the number of elements in the queue. - Return type: - int- Get the amount of items in the queue. 
 - 
peek()[source]¶
- Returns: - the head element of self or - Nonewhen the queue is empty.- Return type: - objector- None- Peek the head element of the queue without removing it from the queue. 
 - 
pop()[source]¶
- Returns: - the head element of self or - Nonewhen the queue is empty.- Return type: - objector- None- Get the head element of the queue. 
 
- 
classmethod