value: Use the GLib GType for GThread if compiling against GLib 2.35.3 or newer

This commit is contained in:
Sebastian Dröge 2012-11-20 15:06:14 +01:00
parent 9326124581
commit da0f9977f0

View file

@ -5846,6 +5846,9 @@ FUNC_VALUE_GET_TYPE (bitmask, "GstBitmask");
GType
gst_g_thread_get_type (void)
{
#if GLIB_CHECK_VERSION(2,35,3)
return G_TYPE_THREAD;
#else
static volatile gsize type_id = 0;
if (g_once_init_enter (&type_id)) {
@ -5857,6 +5860,7 @@ gst_g_thread_get_type (void)
}
return type_id;
#endif
}
void