Skip to content

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

When timeout grater than 0 in g_poll function, the WaitForMultipleObjects call will wait for all the threads to return, but when only one thread got an event the others will sleep until the timeout elapses, and causes a stall. Triggering the stop event in g_poll in this case is useless as it is triggered when all the threads where already signaled or timed-out.

Closes: #2107 (closed)


Trivial backport of !1504 (merged) to glib-2-64.

Merge request reports