|
| From: | Philippe Mathieu-Daudé |
| Subject: | Re: [PATCH v4 2/3] util/main-loop: Avoid adding the same HANDLE twice |
| Date: | Tue, 1 Nov 2022 14:40:56 +0100 |
| User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 |
On 19/10/22 12:20, Bin Meng wrote:
From: Bin Meng <bin.meng@windriver.com> 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 <bin.meng@windriver.com> --- (no changes since v3) Changes in v3: - new patch: avoid adding the same HANDLE twice include/qemu/main-loop.h | 2 ++ util/main-loop.c | 10 ++++++++++ 2 files changed, 12 insertions(+)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
| [Prev in Thread] | Current Thread | [Next in Thread] |