mirror of https://github.com/xemu-project/xemu.git
input: Move input init to main thread
This commit is contained in:
parent
d48bb83c33
commit
294437a28c
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue