mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 23:46:17 +01:00
Revert "notify: Remove unused g_object_notify_queue_clear()"
This reverts commit 0201a81f04
and adds
locks in the right place.
As this file is a public header (see last commit), we cannot just remove
functions from it.
This commit is contained in:
parent
2819dd60b7
commit
86040bb2eb
@ -145,6 +145,21 @@ g_object_notify_queue_thaw (GObject *object,
|
||||
g_free (free_me);
|
||||
}
|
||||
|
||||
static inline void
|
||||
g_object_notify_queue_clear (GObject *object,
|
||||
GObjectNotifyQueue *nqueue)
|
||||
{
|
||||
g_return_if_fail (nqueue->freeze_count > 0);
|
||||
|
||||
G_LOCK(notify_lock);
|
||||
|
||||
g_slist_free (nqueue->pspecs);
|
||||
nqueue->pspecs = NULL;
|
||||
nqueue->n_pspecs = 0;
|
||||
|
||||
G_UNLOCK(notify_lock);
|
||||
}
|
||||
|
||||
static inline void
|
||||
g_object_notify_queue_add (GObject *object,
|
||||
GObjectNotifyQueue *nqueue,
|
||||
|
Loading…
Reference in New Issue
Block a user