Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Rewrite I/O using IOCP #81
It will make polling easier, probably.
Initially I did not do this, because I did not see how I could poll a certain subset of processes or pipes (but not poll the rest of the processes/pipes on the same IOCP). But this is easy if we implement buffering, which we already do. We can just poll the IOCP with all processes, and if a read finishes on a process/pipe that we are not polling on, we just put the data in the buffer, and continue polling. We do not restart the read for the processes that we are not polling, obviously.
IOCP is also good, because currently we have a limit for polling maximum 64 handles, this is a limit of