The check is faulty because the thread variable was assigned in the main
thread while the main loop runs in a different thread on macOS.
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/3070
Signed-off-by: Mohamed Akram <mohd.akram@outlook.com>
Acked-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-ID: <
C87205B9-DD8F-4E53-AB5B-
C8BF82EF1D16@outlook.com>
static int spice_display_is_running;
static int spice_have_target_host;
-static QemuThread me;
-
struct SpiceTimer {
QEMUTimer *timer;
};
* thread and grab the BQL if so before calling qemu
* functions.
*/
- bool need_lock = !qemu_thread_is_self(&me);
+ bool need_lock = !bql_locked();
if (need_lock) {
bql_lock();
}
spice_wan_compression_t wan_compr;
bool seamless_migration;
- qemu_thread_get_self(&me);
-
if (!opts) {
return;
}