mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-25 00:28:21 +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,
|
||||
GError **error)
|
||||
{
|
||||
g_assert (joinable);
|
||||
return g_thread_try_new ("gst-check", func, data, error);
|
||||
GThread *thread = 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
|
||||
static inline GMutex *
|
||||
|
|
Loading…
Reference in a new issue