mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-28 00:16:15 +01:00
gobject: Remove unsynchronized read of freeze_count
There is no need to preserve the check, since check is performed again while holding the notify_locks that protects freeze_count.
This commit is contained in:
parent
5eb9f9f214
commit
d72192f69b
@ -263,7 +263,6 @@ g_object_notify_queue_thaw (GObject *object,
|
|||||||
GSList *slist;
|
GSList *slist;
|
||||||
guint n_pspecs = 0;
|
guint n_pspecs = 0;
|
||||||
|
|
||||||
g_return_if_fail (nqueue->freeze_count > 0);
|
|
||||||
g_return_if_fail (g_atomic_int_get(&object->ref_count) > 0);
|
g_return_if_fail (g_atomic_int_get(&object->ref_count) > 0);
|
||||||
|
|
||||||
G_LOCK(notify_lock);
|
G_LOCK(notify_lock);
|
||||||
|
Loading…
Reference in New Issue
Block a user