Merge branch 'backport-1504-win32-poll-glib-2-64' into 'glib-2-64'

Backport !1504 “win32 gpoll: Fix wait for at least one thread to return” to glib-2-64

See merge request GNOME/glib!1507
This commit is contained in:
Sebastian Dröge 2020-05-22 10:32:16 +00:00
commit 2068a6c484

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))