Merge branch 'fix-2107-windows-gpoll-stall' into 'master'

win32 gpoll: Fix wait for at least one thread to return

Closes #2107

See merge request GNOME/glib!1504
This commit is contained in:
Philip Withnall 2020-05-22 08:11:00 +00:00
commit 31099d97eb

View File

@ -450,7 +450,7 @@ g_poll (GPollFD *fds,
ready = MsgWaitForMultipleObjectsEx (nthreads, thread_handles, timeout,
QS_ALLINPUT, MWMO_ALERTABLE);
else
ready = WaitForMultipleObjects (nthreads, thread_handles, timeout > 0, timeout);
ready = WaitForMultipleObjects (nthreads, thread_handles, FALSE, timeout);
/* Signal the stop in case any of the threads did not stop yet */
if (!SetEvent ((HANDLE)stop_event.fd))