mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 19:55:32 +00:00
whitespace shredder
Original commit message from CVS: whitespace shredder
This commit is contained in:
parent
1615261a2f
commit
51d92d3f2e
2 changed files with 13 additions and 13 deletions
|
@ -22,7 +22,7 @@
|
|||
|
||||
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
|
||||
# define GST_GNUC_CONSTRUCTOR \
|
||||
__attribute__ ((constructor))
|
||||
__attribute__ ((constructor))
|
||||
#else /* !__GNUC__ */
|
||||
# define GST_GNUC_CONSTRUCTOR
|
||||
#endif /* !__GNUC__ */
|
||||
|
@ -31,7 +31,7 @@
|
|||
# define GST_INLINE_FUNC extern __inline__
|
||||
# define GST_CAN_INLINE 1
|
||||
#else
|
||||
# define GST_INLINE_FUNC extern
|
||||
# define GST_INLINE_FUNC extern
|
||||
# undef GST_CAN_INLINE
|
||||
#endif
|
||||
|
||||
|
|
|
@ -33,22 +33,22 @@ struct _GstTrashStackElement {
|
|||
};
|
||||
|
||||
struct _GstTrashStack {
|
||||
volatile gpointer head;
|
||||
volatile gulong count; /* for the ABA problem */
|
||||
volatile gpointer head;
|
||||
volatile gulong count; /* for the ABA problem */
|
||||
GMutex *lock; /* lock for C fallback */
|
||||
};
|
||||
|
||||
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_destroy (GstTrashStack *stack);
|
||||
GST_INLINE_FUNC void gst_trash_stack_free (GstTrashStack *stack);
|
||||
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_destroy (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 gpointer gst_trash_stack_pop (GstTrashStack *stack);
|
||||
GST_INLINE_FUNC void gst_trash_stack_push (GstTrashStack *stack, gpointer mem);
|
||||
GST_INLINE_FUNC gpointer gst_trash_stack_pop (GstTrashStack *stack);
|
||||
|
||||
#if defined (GST_CAN_INLINE) || defined (__GST_TRASH_STACK_C__)
|
||||
|
||||
#if defined (__i386__) && defined (__GNUC__) && __GNUC__ >= 2
|
||||
#if defined (__i386__) && defined (__GNUC__) && __GNUC__ >= 2
|
||||
|
||||
#ifdef GST_CONFIG_NO_SMP
|
||||
#define SMP_LOCK ""
|
||||
|
@ -118,7 +118,7 @@ gst_trash_stack_pop (GstTrashStack *stack)
|
|||
return head;
|
||||
}
|
||||
|
||||
#else
|
||||
#else /* ie not: defined (__i386__) && defined (__GNUC__) && __GNUC__ >= 2 */
|
||||
|
||||
/*
|
||||
* generic implementation
|
||||
|
@ -151,7 +151,7 @@ GST_INLINE_FUNC gpointer
|
|||
gst_trash_stack_pop (GstTrashStack *stack)
|
||||
{
|
||||
GstTrashStackElement *head;
|
||||
|
||||
|
||||
g_mutex_lock (stack->lock);
|
||||
head = (GstTrashStackElement *) stack->head;
|
||||
if (head)
|
||||
|
|
Loading…
Reference in a new issue