mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
atomic queue: register as boxed type
This commit is contained in:
parent
6c6bb0e217
commit
c29168ed5e
2 changed files with 8 additions and 0 deletions
|
@ -39,6 +39,10 @@
|
|||
* Since: 0.10.33
|
||||
*/
|
||||
|
||||
G_DEFINE_BOXED_TYPE (GstAtomicQueue, gst_atomic_queue,
|
||||
(GBoxedCopyFunc) gst_atomic_queue_ref,
|
||||
(GBoxedFreeFunc) gst_atomic_queue_unref);
|
||||
|
||||
/* By default the queue uses 2 * sizeof(gpointer) * clp2 (max_items) of
|
||||
* memory. clp2(x) is the next power of two >= than x.
|
||||
*
|
||||
|
|
|
@ -27,6 +27,8 @@
|
|||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define GST_TYPE_ATOMIC_QUEUE (gst_atomic_queue_get_type())
|
||||
|
||||
/**
|
||||
* GstAtomicQueue:
|
||||
*
|
||||
|
@ -39,6 +41,8 @@ G_BEGIN_DECLS
|
|||
typedef struct _GstAtomicQueue GstAtomicQueue;
|
||||
|
||||
|
||||
GType gst_atomic_queue_get_type (void);
|
||||
|
||||
GstAtomicQueue * gst_atomic_queue_new (guint initial_size) G_GNUC_MALLOC;
|
||||
|
||||
void gst_atomic_queue_ref (GstAtomicQueue * queue);
|
||||
|
|
Loading…
Reference in a new issue