On Sat, 23 Jun 2012, Jason Garrett-Glaser wrote:

On Wed, Jun 20, 2012 at 10:37 PM, Hendrik Leppkes <[email protected]> wrote:


On Wed, Jun 20, 2012 at 11:28 PM, Mans Rullgard <[email protected]> wrote:

Windows Vista and later have a WSAPoll() function equivalent to the
standard poll().


With this change, binaries built on Vista and later will only run on Vista
and later, which seriously impedes redistribution of Windows binaries

- Hendrik

Would it be possible to use a function pointer to select the correct
one on runtime, much like w32threads switches between >=Vista
condition variables and pre-Vista emulation?

This would have the added bonus of giving this performance improvement
even to builds not specifically targeted for >= Vista.

Technically, it should be possible. However, if we do that, we'd have to make sure we use the right struct pollfd definition from the system instead of our own fallback definition. On mingw, this doesn't seem to be available at all right now. We can of course try to check/adapt our fallback struct to make sure it matches windows' definition.

// Martin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to