mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-03 01:02:19 +00:00
check: allow non-joinable threads in private g_thread_create() copy
Looks like some tests use non-joinable threads after all.
This commit is contained in:
parent
2666450864
commit
8811cbc5aa
1 changed files with 4 additions and 2 deletions
|
@ -283,8 +283,10 @@ static inline GThread *
|
||||||
gst_g_thread_create (GThreadFunc func, gpointer data, gboolean joinable,
|
gst_g_thread_create (GThreadFunc func, gpointer data, gboolean joinable,
|
||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
g_assert (joinable);
|
GThread *thread = g_thread_try_new ("gst-check", func, data, error);
|
||||||
return g_thread_try_new ("gst-check", func, data, error);
|
if (!joinable)
|
||||||
|
g_thread_unref (thread);
|
||||||
|
return thread;
|
||||||
}
|
}
|
||||||
#define g_mutex_new gst_g_mutex_new
|
#define g_mutex_new gst_g_mutex_new
|
||||||
static inline GMutex *
|
static inline GMutex *
|
||||||
|
|
Loading…
Reference in a new issue