diff options
author | Ryan Lortie <desrt@desrt.ca> | 2011-10-02 20:51:38 -0400 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2011-10-02 22:33:10 -0400 |
commit | 2a677d1370a1983c2c5e1a4a6dd5f0d9fa9868b3 (patch) | |
tree | f4b8f8d45ab71e6ac93f662a98ae5363bc4a8b6e /gobject | |
parent | 3315aee70915deb12374ab1d6134e4414114bec3 (diff) |
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
Diffstat (limited to 'gobject')
-rw-r--r-- | gobject/gparam.c | 2 | ||||
-rw-r--r-- | gobject/gtype.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gobject/gparam.c b/gobject/gparam.c index ec4cb89e0..22f72b2e7 100644 --- a/gobject/gparam.c +++ b/gobject/gparam.c @@ -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)); diff --git a/gobject/gtype.c b/gobject/gtype.c index da1624014..a96620089 100644 --- a/gobject/gtype.c +++ b/gobject/gtype.c @@ -368,8 +368,8 @@ typedef struct { /* --- variables --- */ -static GRWLock type_rw_lock = G_RW_LOCK_INIT; -static GRecMutex class_init_rec_mutex = G_REC_MUTEX_INIT; +static GRWLock type_rw_lock; +static GRecMutex class_init_rec_mutex; static guint static_n_class_cache_funcs = 0; static ClassCacheFunc *static_class_cache_funcs = NULL; static guint static_n_iface_check_funcs = 0; |