Mike Kaplinskiy <mike.kaplins...@gmail.com> writes: > POLLIN/POLLOUT are selected if we have pending asyncs (as they should > be), but we shouldn't add these as pending events since the associated > overlapped operations aren't done yet. We can't say for sure if we > should notify about these events or not until the async is done and > reselects the socket (where we would get another event if need be).
Until the async is done POLLIN/POLLOUT must not be selected, otherwise you'll get a busy wait. -- Alexandre Julliard julli...@winehq.org