mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-22 17:08:53 +02:00
Make threads mandatory
G_THREADS_ENABLED still exists, but is always defined. It is still possible to use libglib without threads, but gobject (and everything above it) is now guaranteed to be using threads (as, in fact, it was before, since it was accidentally impossible to compile with --disable-threads). https://bugzilla.gnome.org/show_bug.cgi?id=616754
This commit is contained in:
@@ -4261,10 +4261,8 @@ g_type_init_with_debug_flags (GTypeDebugFlags debug_flags)
|
||||
TypeNode *node;
|
||||
volatile GType votype;
|
||||
|
||||
#ifdef G_THREADS_ENABLED
|
||||
if (!g_thread_get_initialized())
|
||||
g_thread_init (NULL);
|
||||
#endif
|
||||
|
||||
G_LOCK (type_init_lock);
|
||||
|
||||
|
Reference in New Issue
Block a user