Eliminate MAXIMUM_WAIT_OBJECTS limitation in g_poll() on Windows
Submitted by Philip Withnall
There is currently an arbitrary limitation of MAXIMUM_WAIT_OBJECTS (typically 64 or 128, I believe) handles being passed to g_poll() on Windows, which is signalled by a g_warning(). It should be possible to eliminate this limitation by using a tree of handles passed to WaitForMultipleObjects().
This would eliminate the warning ‘Too many handles to wait for!’.