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 /glib/gthread.h | |
parent | 3315aee70915deb12374ab1d6134e4414114bec3 (diff) | |
download | glib-2a677d1370a1983c2c5e1a4a6dd5f0d9fa9868b3.tar.gz |
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 'glib/gthread.h')
-rw-r--r-- | glib/gthread.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/glib/gthread.h b/glib/gthread.h index 4ef6bab18..495eaa0a5 100644 --- a/glib/gthread.h +++ b/glib/gthread.h @@ -59,25 +59,21 @@ typedef struct _GCond GCond; typedef struct _GPrivate GPrivate; typedef struct _GStaticPrivate GStaticPrivate; -#define G_MUTEX_INIT { NULL } struct _GMutex { gpointer impl; }; -#define G_RW_LOCK_INIT { NULL } struct _GRWLock { gpointer impl; }; -#define G_COND_INIT { NULL } struct _GCond { gpointer impl; }; -#define G_REC_MUTEX_INIT { NULL } struct _GRecMutex { gpointer impl; @@ -168,8 +164,7 @@ g_once_init_enter (volatile gsize *value_location) #define G_LOCK_NAME(name) g__ ## name ## _lock #define G_LOCK_DEFINE_STATIC(name) static G_LOCK_DEFINE (name) -#define G_LOCK_DEFINE(name) \ - GMutex G_LOCK_NAME (name) = G_MUTEX_INIT +#define G_LOCK_DEFINE(name) GMutex G_LOCK_NAME (name) #define G_LOCK_EXTERN(name) extern GMutex G_LOCK_NAME (name) #ifdef G_DEBUG_LOCKS |