input: Move input init to main thread

This commit is contained in:
Matt Borgerson 2022-04-23 14:19:36 -07:00 committed by mborgerson
parent d48bb83c33
commit 294437a28c
2 changed files with 6 additions and 4 deletions

View File

@ -2719,10 +2719,6 @@ static void qemu_machine_creation_done(void)
qdev_machine_creation_done();
#ifdef XBOX
xemu_input_init();
#endif
if (machine->cgs) {
/*
* Verify that Confidential Guest Support has actually been initialized

View File

@ -1561,6 +1561,12 @@ int main(int argc, char **argv)
DPRINTF("Main thread: initializing app\n");
qemu_mutex_lock_main_loop();
qemu_mutex_lock_iothread();
xemu_input_init();
qemu_mutex_unlock_iothread();
qemu_mutex_unlock_main_loop();
while (1) {
sdl2_gl_refresh(&sdl2_console[0].dcl);
}