Sturla Molden wrote:
Windows certainly has a function to select among multiple wait objects, called WaitForMultipleObjects.
Then the problem is polling for "ready-to-read" and "ready-to-write". The annoying part is that different types of files (disk files, sockets, pipes, named pipes, hardware devices) must be polled with different Windows API calls
I don't follow. Isn't the point of WaitForMultipleObjects that you can make a single call that blocks until any kind of object is ready?