mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-12 20:36:15 +01:00
Merge branch 'wip/oholy/gvolumemonitor-leak' into 'main'
gcontextspecificgroup: Wait until stop_func is done Closes #3258 See merge request GNOME/glib!3934
This commit is contained in:
commit
ca4e6f81d2
@ -153,18 +153,8 @@ g_context_specific_group_request_state (GContextSpecificGroup *group,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* we only block for positive transitions */
|
while (group->requested_state != group->effective_state)
|
||||||
if (requested_state)
|
g_cond_wait (&group->cond, &group->lock);
|
||||||
{
|
|
||||||
while (group->requested_state != group->effective_state)
|
|
||||||
g_cond_wait (&group->cond, &group->lock);
|
|
||||||
|
|
||||||
/* there is no way this could go back to FALSE because the object
|
|
||||||
* that we just created in this thread would have to have been
|
|
||||||
* destroyed again (from this thread) before that could happen.
|
|
||||||
*/
|
|
||||||
g_assert (group->effective_state);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
gpointer
|
gpointer
|
||||||
|
Loading…
Reference in New Issue
Block a user