[PATCH xserver 17/23] os: Add ospoll interface

Emil Velikov emil.l.velikov at gmail.com
Mon May 30 21:10:20 UTC 2016


On 30 May 2016 at 08:47, Keith Packard <keithp at keithp.com> wrote:
> Julien Cristau <jcristau at debian.org> writes:
>
>>> #define X_NOTIFY_READ   POLLIN
>>> #define X_NOTIFY_WRITE  POLLOUT
>>> #define X_NOTIFY_OTHER  (!(POLLIN|POLLOUT))
>>>
>> I guess you mean ~(POLLIN|POLLOUT).
>
> Yes, thanks. I've actually reconsidered and decided to make an interface
> which doesn't use the underlying OS values. It's simpler to describe,
> and allows us to change the underlying implementation without impacting
> the ABI.
Amazing. On behalf of anyone who has to deal with the Windows side of
things - thank you.

Side note: various sources claim that WSApoll is broken and MS is
doing nothing to fix it. So this approach makes it a lot easier for
people to rework things. Be that on the Windows side or if the BSD
people are interested in using something like kqueue.

Thanks
EmilŠ³


More information about the xorg-devel mailing list