summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2666450)
raw | patch | inline | side by side (parent: 2666450)
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | |
Sun, 4 Dec 2011 21:19:04 +0000 (21:19 +0000) | ||
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | |
Sun, 4 Dec 2011 21:20:07 +0000 (21:20 +0000) |
Looks like some tests use non-joinable threads after all.
libs/gst/check/gstcheck.h | patch | blob | history |
index 46bf6c5422afa474243fdf0fe6ba36175fdb3bb8..5e3f9950407467f3cee44d91a9e5e758ace5ebb9 100644 (file)
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 *