The Gst::AtomicQueue object implements a queue that can be used from multiple threads without performing any blocking operations. More...
|
| void | reference () const |
| | Increment the reference count for this object. More...
|
| |
| void | unreference () const |
| | Decrement the reference count for this object. More...
|
| |
| const GstAtomicQueue* | gobj () const |
| | Provides access to the underlying C instance. More...
|
| |
| GstAtomicQueue* | gobj () |
| | Provides access to the underlying C instance. More...
|
| |
| GstAtomicQueue* | gobj_copy () const |
| | Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More...
|
| |
| guint | length () |
| | Get the amount of items in the queue. More...
|
| |
| guint | length () const |
| | Get the amount of items in the queue. More...
|
| |
| void | push (const T& data) |
| | Append data to the tail of the queue. More...
|
| |
| T | peek () |
| | Peek the head element of the queue without removing it from the queue. More...
|
| |
| T | pop () |
| | Get the head element of the queue. More...
|
| |
template<typename T>
class Gst::AtomicQueue< T >
The Gst::AtomicQueue object implements a queue that can be used from multiple threads without performing any blocking operations.
Provides access to the underlying C instance.
Provides access to the underlying C instance.
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
Get the amount of items in the queue.
- Returns
- The number of elements in the queue.
Get the amount of items in the queue.
- Returns
- The number of elements in the queue.
Peek the head element of the queue without removing it from the queue.
- Returns
- The head element of queue.
- Exceptions
-
| std::runtime_error | if the queue is empty. |
Get the head element of the queue.
- Returns
- The head element of queue.
- Exceptions
-
| std::runtime_error | if the queue is empty. |
Append data to the tail of the queue.
- Parameters
-
Increment the reference count for this object.
You should never need to do this manually - use the object via a RefPtr instead.
Decrement the reference count for this object.
You should never need to do this manually - use the object via a RefPtr instead.
A Glib::wrap() method for this object.
- Parameters
-
| object | The C instance. |
| take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |
- Returns
- A C++ instance that wraps this C instance.
The documentation for this class was generated from the following file:
- gstreamermm/atomicqueue.h