diff options
author | Paolo Bonzini | 2022-04-27 15:08:29 +0200 |
---|---|---|
committer | Paolo Bonzini | 2022-05-12 12:29:44 +0200 |
commit | d6ee15adec5a2345e88c680cd15ed48796c89c14 (patch) | |
tree | 423cf9a8014a44af30a1047a1342fba81735d968 /ui | |
parent | coroutine-lock: qemu_co_queue_next is a coroutine-only qemu_co_enter_next (diff) | |
download | qemu-d6ee15adec5a2345e88c680cd15ed48796c89c14.tar.gz qemu-d6ee15adec5a2345e88c680cd15ed48796c89c14.tar.xz qemu-d6ee15adec5a2345e88c680cd15ed48796c89c14.zip |
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>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/console.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/console.c b/ui/console.c index 15d0f6affd..36c80cd1de 100644 --- a/ui/console.c +++ b/ui/console.c @@ -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); } } |