mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
input: Move input init to main thread
This commit is contained in:
committed by
mborgerson
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user