mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-19 08:42:09 +01:00
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:
commit
2068a6c484
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user