mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
jitterbuffer: Add tracing of lock usage
Helps with debugging lock usage https://bugzilla.gnome.org/show_bug.cgi?id=762988
This commit is contained in:
parent
a5369c6be3
commit
cf866a8469
1 changed files with 9 additions and 2 deletions
|
@ -173,14 +173,21 @@ enum
|
|||
PROP_RFC7273_SYNC
|
||||
};
|
||||
|
||||
#define JBUF_LOCK(priv) (g_mutex_lock (&(priv)->jbuf_lock))
|
||||
#define JBUF_LOCK(priv) G_STMT_START { \
|
||||
GST_TRACE("Locking from thread %p", g_thread_self()); \
|
||||
(g_mutex_lock (&(priv)->jbuf_lock)); \
|
||||
GST_TRACE("Locked from thread %p", g_thread_self()); \
|
||||
} G_STMT_END
|
||||
|
||||
#define JBUF_LOCK_CHECK(priv,label) G_STMT_START { \
|
||||
JBUF_LOCK (priv); \
|
||||
if (G_UNLIKELY (priv->srcresult != GST_FLOW_OK)) \
|
||||
goto label; \
|
||||
} G_STMT_END
|
||||
#define JBUF_UNLOCK(priv) (g_mutex_unlock (&(priv)->jbuf_lock))
|
||||
#define JBUF_UNLOCK(priv) G_STMT_START { \
|
||||
GST_TRACE ("Unlocking from thread %p", g_thread_self ()); \
|
||||
(g_mutex_unlock (&(priv)->jbuf_lock)); \
|
||||
} G_STMT_END
|
||||
|
||||
#define JBUF_WAIT_TIMER(priv) G_STMT_START { \
|
||||
GST_DEBUG ("waiting timer"); \
|
||||
|
|
Loading…
Reference in a new issue