mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
d3dvideosink: Port remaining bits to new GLib threading API
This commit is contained in:
parent
4f28e50540
commit
7e8c531621
1 changed files with 8 additions and 8 deletions
|
@ -97,15 +97,15 @@ struct _GstD3DVideoSinkClass
|
|||
};
|
||||
|
||||
#if 1
|
||||
# define LOCK_SINK(sink) g_static_rec_mutex_lock(&sink->lock);
|
||||
# define UNLOCK_SINK(sink) g_static_rec_mutex_unlock(&sink->lock);
|
||||
# define LOCK_CLASS(obj, class) g_static_rec_mutex_lock(&class->lock);
|
||||
# define UNLOCK_CLASS(obj, class) g_static_rec_mutex_unlock(&class->lock);
|
||||
# define LOCK_SINK(sink) g_rec_mutex_lock(&sink->lock);
|
||||
# define UNLOCK_SINK(sink) g_rec_mutex_unlock(&sink->lock);
|
||||
# define LOCK_CLASS(obj, class) g_rec_mutex_lock(&class->lock);
|
||||
# define UNLOCK_CLASS(obj, class) g_rec_mutex_unlock(&class->lock);
|
||||
#else
|
||||
# define LOCK_SINK(sink) GST_LOG_OBJECT(sink, "SINK LOCK"); g_static_rec_mutex_lock(&sink->lock); GST_LOG_OBJECT(sink, "SINK LOCKED");
|
||||
# define UNLOCK_SINK(sink) g_static_rec_mutex_unlock(&sink->lock); GST_LOG_OBJECT(sink, "SINK UNLOCKED");
|
||||
# define LOCK_CLASS(obj, class) GST_LOG_OBJECT(obj, "CLASS LOCK"); g_static_rec_mutex_lock(&class->lock); GST_LOG_OBJECT(obj, "CLASS LOCKED");
|
||||
# define UNLOCK_CLASS(obj, class) g_static_rec_mutex_unlock(&class->lock); GST_LOG_OBJECT(obj, "CLASS UNLOCKED");
|
||||
# define LOCK_SINK(sink) GST_LOG_OBJECT(sink, "SINK LOCK"); g_rec_mutex_lock(&sink->lock); GST_LOG_OBJECT(sink, "SINK LOCKED");
|
||||
# define UNLOCK_SINK(sink) g_rec_mutex_unlock(&sink->lock); GST_LOG_OBJECT(sink, "SINK UNLOCKED");
|
||||
# define LOCK_CLASS(obj, class) GST_LOG_OBJECT(obj, "CLASS LOCK"); g_rec_mutex_lock(&class->lock); GST_LOG_OBJECT(obj, "CLASS LOCKED");
|
||||
# define UNLOCK_CLASS(obj, class) g_rec_mutex_unlock(&class->lock); GST_LOG_OBJECT(obj, "CLASS UNLOCKED");
|
||||
#endif
|
||||
|
||||
GType gst_d3dvideosink_get_type (void);
|
||||
|
|
Loading…
Reference in a new issue