diff options
author | Ryan Lortie <desrt@desrt.ca> | 2013-07-01 23:30:31 -0400 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2013-07-01 23:30:47 -0400 |
commit | 3cefb7248affdf92c878520f54bcaa3993d9b2fc (patch) | |
tree | ccf75d004d545f7b01a7401ba7bd6840fcffaf70 | |
parent | e55ccf7338f2eb68f08d648855a4a92a091df690 (diff) | |
download | glib-3cefb7248affdf92c878520f54bcaa3993d9b2fc.tar.gz |
Revert two errant commits to GMutex, etc.
This reverts commits dfbac178bdcbcb042be928dcbeaa87742b511836 and
56348210f38209a11902e54b2db41833aab36414.
These two commits introduce undesirable behaviour and were made with no
apparent approval from anybody at all, and without reference to a bug or
mailing list discussion.
-rw-r--r-- | glib/gthread-posix.c | 6 | ||||
-rw-r--r-- | glib/gthread-win32.c | 1 |
2 files changed, 1 insertions, 6 deletions
diff --git a/glib/gthread-posix.c b/glib/gthread-posix.c index 403a014b6..23371ae0f 100644 --- a/glib/gthread-posix.c +++ b/glib/gthread-posix.c @@ -184,13 +184,12 @@ g_mutex_init (GMutex *mutex) * Calling g_mutex_clear() on a locked mutex leads to undefined * behaviour. * - * Since: 2.32 + * Sine: 2.32 */ void g_mutex_clear (GMutex *mutex) { g_mutex_impl_free (mutex->p); - mutex->p = NULL; } /** @@ -362,7 +361,6 @@ void g_rec_mutex_clear (GRecMutex *rec_mutex) { g_rec_mutex_impl_free (rec_mutex->p); - rec_mutex->p = NULL; } /** @@ -520,7 +518,6 @@ void g_rw_lock_clear (GRWLock *rw_lock) { g_rw_lock_impl_free (rw_lock->p); - rw_lock->p = NULL; } /** @@ -725,7 +722,6 @@ void g_cond_clear (GCond *cond) { g_cond_impl_free (cond->p); - cond->p = NULL; } /** diff --git a/glib/gthread-win32.c b/glib/gthread-win32.c index 1f832e3f4..c54f2bdbc 100644 --- a/glib/gthread-win32.c +++ b/glib/gthread-win32.c @@ -198,7 +198,6 @@ void g_rec_mutex_clear (GRecMutex *mutex) { g_rec_mutex_impl_free (mutex->p); - mutex->p = NULL; } void |