mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-05 05:09:21 +02:00
Don't put threads created with g_thread_new() on the list
This lets us avoid the overhead of maintaining the global list in the non-deprecated case. https://bugzilla.gnome.org/show_bug.cgi?id=660635
This commit is contained in:
@@ -155,7 +155,7 @@ g_thread_create (GThreadFunc func,
|
||||
gboolean joinable,
|
||||
GError **error)
|
||||
{
|
||||
return g_thread_new_full (NULL, func, data, joinable, 0, error);
|
||||
return g_thread_new_internal (NULL, func, data, joinable, 0, TRUE, error);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -183,7 +183,7 @@ g_thread_create_full (GThreadFunc func,
|
||||
GThreadPriority priority,
|
||||
GError **error)
|
||||
{
|
||||
return g_thread_new_full (NULL, func, data, joinable, stack_size, error);
|
||||
return g_thread_new_internal (NULL, func, data, joinable, stack_size, TRUE, error);
|
||||
}
|
||||
|
||||
/* GStaticMutex {{{1 ------------------------------------------------------ */
|
||||
|
Reference in New Issue
Block a user