mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +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;
|
||||
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_LOCK(notify_lock);
|
||||
|
Loading…
Reference in New Issue
Block a user