Gst.AtomicQueue¶
Fields¶
None
Methods¶
class |
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class Gst.AtomicQueue¶
The
Gst.AtomicQueue
object 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:
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:
Get the amount of items in the queue.