mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-06-03 11:20:07 +02:00
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:
commit
31099d97eb
@ -450,7 +450,7 @@ g_poll (GPollFD *fds,
|
|||||||
ready = MsgWaitForMultipleObjectsEx (nthreads, thread_handles, timeout,
|
ready = MsgWaitForMultipleObjectsEx (nthreads, thread_handles, timeout,
|
||||||
QS_ALLINPUT, MWMO_ALERTABLE);
|
QS_ALLINPUT, MWMO_ALERTABLE);
|
||||||
else
|
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 */
|
/* Signal the stop in case any of the threads did not stop yet */
|
||||||
if (!SetEvent ((HANDLE)stop_event.fd))
|
if (!SetEvent ((HANDLE)stop_event.fd))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user