Files
git/compat
Johannes Sixt f801325ed5 Implement a rudimentary poll() emulation for Windows.
This emulation of poll() is by far not general. It assumes that the
fds that are to be waited for are connected to pipes. The pipes are
polled in a loop until data becomes available in at least one of them.
If only a single fd is waited for, the implementation actually does
not wait at all, but assumes that a subsequent read() will block.

In order to not burn CPU time, it is yielded to other processes before
the next round in the poll loop using Sleep(0). Note that any sleep
timeout greater than zero will reduce the efficiency by a magnitude.

Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
2007-11-19 12:36:32 +01:00
..
2007-01-19 16:24:48 +01:00
2007-01-19 16:24:48 +01:00
2007-09-06 22:46:00 -07:00
2007-06-07 00:04:01 -07:00
2007-03-01 22:09:05 +01:00
2007-03-01 22:09:05 +01:00