Skip to content
  • majordaw's avatar
    win32 gpoll: Fix wait for at least one thread to return · 26991b60
    majordaw authored
    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
    26991b60