projects
/
platform
/
upstream
/
gstreamer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
protection: Fix the string to define unspecified system id
[platform/upstream/gstreamer.git]
/
gst
/
gstatomicqueue.c
diff --git
a/gst/gstatomicqueue.c
b/gst/gstatomicqueue.c
index
812970a
..
a80089c
100644
(file)
--- a/
gst/gstatomicqueue.c
+++ b/
gst/gstatomicqueue.c
@@
-16,8
+16,8
@@
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
- * Free Software Foundation, Inc., 5
9 Temple Place - Suite 330
,
- * Boston, MA 0211
1-1307
, USA.
+ * Free Software Foundation, Inc., 5
1 Franklin St, Fifth Floor
,
+ * Boston, MA 0211
0-1301
, USA.
*/
#include "gst_private.h"
*/
#include "gst_private.h"
@@
-35,10
+35,12
@@
*
* The #GstAtomicQueue object implements a queue that can be used from multiple
* threads without performing any blocking operations.
*
* The #GstAtomicQueue object implements a queue that can be used from multiple
* threads without performing any blocking operations.
- *
- * 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.
*
/* By default the queue uses 2 * sizeof(gpointer) * clp2 (max_items) of
* memory. clp2(x) is the next power of two >= than x.
*
@@
-149,8
+151,6
@@
clear_free_list (GstAtomicQueue * queue)
* nearest power of 2 and used as the initial size of the queue.
*
* Returns: a new #GstAtomicQueue
* nearest power of 2 and used as the initial size of the queue.
*
* Returns: a new #GstAtomicQueue
- *
- * Since: 0.10.33
*/
GstAtomicQueue *
gst_atomic_queue_new (guint initial_size)
*/
GstAtomicQueue *
gst_atomic_queue_new (guint initial_size)
@@
-174,8
+174,6
@@
gst_atomic_queue_new (guint initial_size)
* @queue: a #GstAtomicQueue
*
* Increase the refcount of @queue.
* @queue: a #GstAtomicQueue
*
* Increase the refcount of @queue.
- *
- * Since: 0.10.33
*/
void
gst_atomic_queue_ref (GstAtomicQueue * queue)
*/
void
gst_atomic_queue_ref (GstAtomicQueue * queue)
@@
-200,8
+198,6
@@
gst_atomic_queue_free (GstAtomicQueue * queue)
* @queue: a #GstAtomicQueue
*
* Unref @queue and free the memory when the refcount reaches 0.
* @queue: a #GstAtomicQueue
*
* Unref @queue and free the memory when the refcount reaches 0.
- *
- * Since: 0.10.33
*/
void
gst_atomic_queue_unref (GstAtomicQueue * queue)
*/
void
gst_atomic_queue_unref (GstAtomicQueue * queue)
@@
-218,9
+214,8
@@
gst_atomic_queue_unref (GstAtomicQueue * queue)
*
* Peek the head element of the queue without removing it from the queue.
*
*
* Peek the head element of the queue without removing it from the queue.
*
- * Returns: the head element of @queue or NULL when the queue is empty.
- *
- * Since: 0.10.33
+ * Returns: (transfer none) (nullable): the head element of @queue or
+ * %NULL when the queue is empty.
*/
gpointer
gst_atomic_queue_peek (GstAtomicQueue * queue)
*/
gpointer
gst_atomic_queue_peek (GstAtomicQueue * queue)
@@
-269,9
+264,8
@@
gst_atomic_queue_peek (GstAtomicQueue * queue)
*
* Get the head element of the queue.
*
*
* Get the head element of the queue.
*
- * Returns: the head element of @queue or NULL when the queue is empty.
- *
- * Since: 0.10.33
+ * Returns: (transfer full): the head element of @queue or %NULL when
+ * the queue is empty.
*/
gpointer
gst_atomic_queue_pop (GstAtomicQueue * queue)
*/
gpointer
gst_atomic_queue_pop (GstAtomicQueue * queue)
@@
-339,8
+333,6
@@
gst_atomic_queue_pop (GstAtomicQueue * queue)
* @data: the data
*
* Append @data to the tail of the queue.
* @data: the data
*
* Append @data to the tail of the queue.
- *
- * Since: 0.10.33
*/
void
gst_atomic_queue_push (GstAtomicQueue * queue, gpointer data)
*/
void
gst_atomic_queue_push (GstAtomicQueue * queue, gpointer data)
@@
-403,8
+395,6
@@
gst_atomic_queue_push (GstAtomicQueue * queue, gpointer data)
* 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.
- *
- * Since: 0.10.33
*/
guint
gst_atomic_queue_length (GstAtomicQueue * queue)
*/
guint
gst_atomic_queue_length (GstAtomicQueue * queue)