X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gst%2Fgstatomicqueue.c;h=a80089c649a53507bf2a6e04f84e9b265556cfdc;hb=5688773b91c3ea1094996a573f119230727a0978;hp=812970acb4f9df003af6329f556f9b2d45824686;hpb=91e13d4970a8860325bab361c7144bfa7c649c71;p=platform%2Fupstream%2Fgstreamer.git diff --git a/gst/gstatomicqueue.c b/gst/gstatomicqueue.c index 812970a..a80089c 100644 --- 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 - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301, USA. */ #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. - * - * 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. * @@ -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 - * - * Since: 0.10.33 */ 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. - * - * Since: 0.10.33 */ 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. - * - * Since: 0.10.33 */ 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. * - * 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) @@ -269,9 +264,8 @@ gst_atomic_queue_peek (GstAtomicQueue * 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) @@ -339,8 +333,6 @@ gst_atomic_queue_pop (GstAtomicQueue * 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) @@ -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. - * - * Since: 0.10.33 */ guint gst_atomic_queue_length (GstAtomicQueue * queue)