mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02: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:
@@ -145,6 +145,21 @@ g_object_notify_queue_thaw (GObject *object,
|
|||||||
g_free (free_me);
|
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
|
static inline void
|
||||||
g_object_notify_queue_add (GObject *object,
|
g_object_notify_queue_add (GObject *object,
|
||||||
GObjectNotifyQueue *nqueue,
|
GObjectNotifyQueue *nqueue,
|
||||||
|
Reference in New Issue
Block a user