mirror of
https://github.com/mii443/qemu.git
synced 2025-12-12 05:18:37 +00:00
coroutine-lock: introduce qemu_co_queue_enter_all
Because qemu_co_queue_restart_all does not release the lock, it should be used only in coroutine context. Introduce a new function that, like qemu_co_enter_next, does release the lock, and use it whenever qemu_co_queue_restart_all was used outside coroutine context. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20220427130830.150180-3-pbonzini@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
@@ -221,7 +221,7 @@ static void gui_setup_refresh(DisplayState *ds)
|
||||
void graphic_hw_update_done(QemuConsole *con)
|
||||
{
|
||||
if (con) {
|
||||
qemu_co_queue_restart_all(&con->dump_queue);
|
||||
qemu_co_enter_all(&con->dump_queue, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user