[PATCH xserver] FlushAllOutput: Only call FlushCallbacks when actually flushing data
Keith Packard
keithp at keithp.com
Tue Jul 12 00:15:22 UTC 2016
Peter Harris <pharris at opentext.com> writes:
> The number of fds in fd_set isn't really fixed. FD_SETSIZE is user
> controlled, so I can't imagine a problem with massaging fd_set into C99
> variable-length-array form:
>
> typedef struct xfd_set {
> u_int fd_count;
> SOCKET fd_array[];
> } xfd_set;
>
> and reallocing to taste.
Sounds like it would be easy to duplicate the 'poll' code using this
alternate data structure then? Anyone up for the adventure?
--
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 810 bytes
Desc: not available
URL: <https://lists.x.org/archives/xorg-devel/attachments/20160711/f0a95335/attachment.sig>
More information about the xorg-devel
mailing list