mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
whitespace fixes
Original commit message from CVS: whitespace fixes
This commit is contained in:
parent
49127d2e3e
commit
64a74152c2
1 changed files with 11 additions and 11 deletions
|
@ -34,24 +34,24 @@ struct _GstTrashStackElement {
|
||||||
|
|
||||||
typedef volatile gpointer gst_vgpointer;/* gtk-doc volatile workaround */
|
typedef volatile gpointer gst_vgpointer;/* gtk-doc volatile workaround */
|
||||||
typedef volatile gulong gst_vgulong; /* gtk-doc volatile workaround */
|
typedef volatile gulong gst_vgulong; /* gtk-doc volatile workaround */
|
||||||
|
|
||||||
struct _GstTrashStack {
|
struct _GstTrashStack {
|
||||||
gst_vgpointer head;
|
gst_vgpointer head;
|
||||||
gst_vgulong count; /* for the ABA problem */
|
gst_vgulong count; /* for the ABA problem */
|
||||||
GMutex *lock; /* lock for C fallback */
|
GMutex *lock; /* lock for C fallback */
|
||||||
};
|
};
|
||||||
|
|
||||||
GST_INLINE_FUNC GstTrashStack* gst_trash_stack_new (void);
|
GST_INLINE_FUNC GstTrashStack* gst_trash_stack_new (void);
|
||||||
GST_INLINE_FUNC void gst_trash_stack_init (GstTrashStack *stack);
|
GST_INLINE_FUNC void gst_trash_stack_init (GstTrashStack *stack);
|
||||||
GST_INLINE_FUNC void gst_trash_stack_destroy (GstTrashStack *stack);
|
GST_INLINE_FUNC void gst_trash_stack_destroy (GstTrashStack *stack);
|
||||||
GST_INLINE_FUNC void gst_trash_stack_free (GstTrashStack *stack);
|
GST_INLINE_FUNC void gst_trash_stack_free (GstTrashStack *stack);
|
||||||
|
|
||||||
GST_INLINE_FUNC void gst_trash_stack_push (GstTrashStack *stack, gpointer mem);
|
GST_INLINE_FUNC void gst_trash_stack_push (GstTrashStack *stack, gpointer mem);
|
||||||
GST_INLINE_FUNC gpointer gst_trash_stack_pop (GstTrashStack *stack);
|
GST_INLINE_FUNC gpointer gst_trash_stack_pop (GstTrashStack *stack);
|
||||||
|
|
||||||
#if defined (GST_CAN_INLINE) || defined (__GST_TRASH_STACK_C__)
|
#if defined (GST_CAN_INLINE) || defined (__GST_TRASH_STACK_C__)
|
||||||
|
|
||||||
#if defined (USE_FAST_STACK_TRASH) && defined (__i386__) && defined (__GNUC__) && __GNUC__ >= 2
|
#if defined (USE_FAST_STACK_TRASH) && defined (__i386__) && defined (__GNUC__) && __GNUC__ >= 2
|
||||||
|
|
||||||
#ifdef GST_CONFIG_NO_SMP
|
#ifdef GST_CONFIG_NO_SMP
|
||||||
#define SMP_LOCK ""
|
#define SMP_LOCK ""
|
||||||
|
@ -158,7 +158,7 @@ GST_INLINE_FUNC gpointer
|
||||||
gst_trash_stack_pop (GstTrashStack *stack)
|
gst_trash_stack_pop (GstTrashStack *stack)
|
||||||
{
|
{
|
||||||
GstTrashStackElement *head;
|
GstTrashStackElement *head;
|
||||||
|
|
||||||
g_mutex_lock (stack->lock);
|
g_mutex_lock (stack->lock);
|
||||||
head = (GstTrashStackElement *) stack->head;
|
head = (GstTrashStackElement *) stack->head;
|
||||||
if (head)
|
if (head)
|
||||||
|
|
Loading…
Reference in a new issue