Re: [PATCH v2 1/2] util/main-loop: Fix maximum number of wait objects for win32

2022-08-11 Thread Bin Meng
On Wed, Aug 10, 2022 at 11:57 PM Marc-André Lureau wrote: > > > > On Wed, Aug 10, 2022 at 7:20 PM Bin Meng wrote: >> >> On Wed, Aug 10, 2022 at 1:06 AM Marc-André Lureau >> wrote: >> > >> > Hi >> > >> > On Tue, Aug 9, 2022 at 8:43 PM Bin Meng wrote: >> >> >> >> From: Bin Meng >> >> >> >> The m

Re: [PATCH v2 1/2] util/main-loop: Fix maximum number of wait objects for win32

2022-08-10 Thread Marc-André Lureau
On Wed, Aug 10, 2022 at 7:20 PM Bin Meng wrote: > On Wed, Aug 10, 2022 at 1:06 AM Marc-André Lureau > wrote: > > > > Hi > > > > On Tue, Aug 9, 2022 at 8:43 PM Bin Meng wrote: > >> > >> From: Bin Meng > >> > >> The maximum number of wait objects for win32 should be > >> MAXIMUM_WAIT_OBJECTS, no

Re: [PATCH v2 1/2] util/main-loop: Fix maximum number of wait objects for win32

2022-08-10 Thread Bin Meng
On Wed, Aug 10, 2022 at 1:06 AM Marc-André Lureau wrote: > > Hi > > On Tue, Aug 9, 2022 at 8:43 PM Bin Meng wrote: >> >> From: Bin Meng >> >> The maximum number of wait objects for win32 should be >> MAXIMUM_WAIT_OBJECTS, not MAXIMUM_WAIT_OBJECTS + 1. >> >> Fix the logic in qemu_add_wait_object(

Re: [PATCH v2 1/2] util/main-loop: Fix maximum number of wait objects for win32

2022-08-09 Thread Marc-André Lureau
Hi On Tue, Aug 9, 2022 at 8:43 PM Bin Meng wrote: > From: Bin Meng > > The maximum number of wait objects for win32 should be > MAXIMUM_WAIT_OBJECTS, not MAXIMUM_WAIT_OBJECTS + 1. > > Fix the logic in qemu_add_wait_object() to avoid adding > the same HANDLE twice. > > Please make that a separat

[PATCH v2 1/2] util/main-loop: Fix maximum number of wait objects for win32

2022-08-09 Thread Bin Meng
From: Bin Meng The maximum number of wait objects for win32 should be MAXIMUM_WAIT_OBJECTS, not MAXIMUM_WAIT_OBJECTS + 1. Fix the logic in qemu_add_wait_object() to avoid adding the same HANDLE twice. Signed-off-by: Bin Meng --- Changes in v2: - fix the logic in qemu_add_wait_object() to avoi