Re: [PATCH v4 2/3] util/main-loop: Avoid adding the same HANDLE twice

2022-11-01 Thread Philippe Mathieu-Daudé
On 19/10/22 12:20, Bin Meng wrote: From: Bin Meng Fix the logic in qemu_add_wait_object() to avoid adding the same HANDLE twice, as the behavior is undefined when passing an array that contains same HANDLEs to WaitForMultipleObjects() API. Signed-off-by: Bin Meng --- (no changes since v3) C

[PATCH v4 2/3] util/main-loop: Avoid adding the same HANDLE twice

2022-10-19 Thread Bin Meng
From: Bin Meng Fix the logic in qemu_add_wait_object() to avoid adding the same HANDLE twice, as the behavior is undefined when passing an array that contains same HANDLEs to WaitForMultipleObjects() API. Signed-off-by: Bin Meng --- (no changes since v3) Changes in v3: - new patch: avoid addi