mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-30 05:43:28 +02:00
locks: drop _INIT macros
All locks are now zero-initialised, so we can drop the G_*_INIT macros for them. Adjust various users around GLib accordingly and change the docs. https://bugzilla.gnome.org/show_bug.cgi?id=659866
This commit is contained in:
@@ -891,7 +891,7 @@ param_spec_pool_equals (gconstpointer key_spec_1,
|
||||
GParamSpecPool*
|
||||
g_param_spec_pool_new (gboolean type_prefixing)
|
||||
{
|
||||
static GMutex init_mutex = G_MUTEX_INIT;
|
||||
static GMutex init_mutex;
|
||||
GParamSpecPool *pool = g_new (GParamSpecPool, 1);
|
||||
|
||||
memcpy (&pool->mutex, &init_mutex, sizeof (init_mutex));
|
||||
|
Reference in New Issue
Block a user