mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-03 14:42:10 +01:00
[notify] lift some code outside of critical region
This commit is contained in:
parent
1d98f93194
commit
45d80cf9bd
@ -313,14 +313,14 @@ g_object_notify_queue_add (GObject *object,
|
|||||||
{
|
{
|
||||||
GParamSpec *redirect;
|
GParamSpec *redirect;
|
||||||
|
|
||||||
G_LOCK(notify_lock);
|
|
||||||
|
|
||||||
g_return_if_fail (nqueue->n_pspecs < 65535);
|
|
||||||
|
|
||||||
redirect = g_param_spec_get_redirect_target (pspec);
|
redirect = g_param_spec_get_redirect_target (pspec);
|
||||||
if (redirect)
|
if (redirect)
|
||||||
pspec = redirect;
|
pspec = redirect;
|
||||||
|
|
||||||
|
G_LOCK(notify_lock);
|
||||||
|
|
||||||
|
g_return_if_fail (nqueue->n_pspecs < 65535);
|
||||||
|
|
||||||
/* we do the deduping in _thaw */
|
/* we do the deduping in _thaw */
|
||||||
if (g_slist_find (nqueue->pspecs, pspec) == NULL)
|
if (g_slist_find (nqueue->pspecs, pspec) == NULL)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user