[PATCH 2/9] server: pending asyncs should only affect FD_READ/FD_WRITE/FD_CLOSE messages
Alexandre Julliard
julliard at winehq.org
Wed Mar 24 13:50:23 CDT 2010
Mike Kaplinskiy <mike.kaplinskiy at 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
julliard at winehq.org
More information about the wine-devel
mailing list