mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-14 04:57:46 +02:00
Revert two errant commits to GMutex, etc.
This reverts commitsdfbac178bd
and56348210f3
. 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.
This commit is contained in:
@@ -184,13 +184,12 @@ g_mutex_init (GMutex *mutex)
|
|||||||
* Calling g_mutex_clear() on a locked mutex leads to undefined
|
* Calling g_mutex_clear() on a locked mutex leads to undefined
|
||||||
* behaviour.
|
* behaviour.
|
||||||
*
|
*
|
||||||
* Since: 2.32
|
* Sine: 2.32
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
g_mutex_clear (GMutex *mutex)
|
g_mutex_clear (GMutex *mutex)
|
||||||
{
|
{
|
||||||
g_mutex_impl_free (mutex->p);
|
g_mutex_impl_free (mutex->p);
|
||||||
mutex->p = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -362,7 +361,6 @@ void
|
|||||||
g_rec_mutex_clear (GRecMutex *rec_mutex)
|
g_rec_mutex_clear (GRecMutex *rec_mutex)
|
||||||
{
|
{
|
||||||
g_rec_mutex_impl_free (rec_mutex->p);
|
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_clear (GRWLock *rw_lock)
|
||||||
{
|
{
|
||||||
g_rw_lock_impl_free (rw_lock->p);
|
g_rw_lock_impl_free (rw_lock->p);
|
||||||
rw_lock->p = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -725,7 +722,6 @@ void
|
|||||||
g_cond_clear (GCond *cond)
|
g_cond_clear (GCond *cond)
|
||||||
{
|
{
|
||||||
g_cond_impl_free (cond->p);
|
g_cond_impl_free (cond->p);
|
||||||
cond->p = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -198,7 +198,6 @@ void
|
|||||||
g_rec_mutex_clear (GRecMutex *mutex)
|
g_rec_mutex_clear (GRecMutex *mutex)
|
||||||
{
|
{
|
||||||
g_rec_mutex_impl_free (mutex->p);
|
g_rec_mutex_impl_free (mutex->p);
|
||||||
mutex->p = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Reference in New Issue
Block a user