On 23/03/2017 11:12, Jiahuan Zhang wrote: > > It's Windows that doesn't support it (the Windows function name is > WaitForSingleObject). > > > Hi, I have checked the Windows chardev implimentation in QEMU. > I learned from char-win-stdio.c to using thread and WaitForSingleObject > for interlocking. > char-win-stdio.c uses qemu_add_wait_object(). > Char-pipe.c uses qemu_add_polling_cb(). > I found all over qemu, only char-pipe uses qemu_add_polling_cb(). > Does this mean that somebody has already looked into this issue, > and failed in using qemu_add_wait_object(), > and then he/she created qemu_add_polling_cb()?
I don't know, but using threads sounds like a way to solve the bug, indeed. Thanks, Paolo