[2/6][PATCH]Fixes an Async bug.

Alexandre Julliard julliard at winehq.org
Thu Aug 21 13:17:36 CDT 2008

"Scott Lindeneau" <slindeneau at gmail.com> writes:

> Fixes a bug in the async implementation. When checking for waiting
>  elements on a queue you need to check to see if ANY element is waiting,
>  not just the first element. When waking elements up you should ALERT an
>  element that is not already alerted. All other status messages should be
>  set. (This compensates for poll events that trigger other poll events
>  before garbage collection occurs and removes alerted elements from the
>  queues).

This is wrong, it will lead to busy waiting. We very much want the first
async to have been handled before we wake up for the next one.

Alexandre Julliard
julliard at winehq.org

More information about the wine-devel mailing list