1
0
mirror of https://github.com/git/git.git synced 2024-09-22 05:31:42 +02:00
git/compat
Johannes Sixt 6ed807f843 Windows: A rudimentary poll() emulation.
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 not to needlessly burn CPU time, the CPU 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>
2008-06-26 08:45:07 +02:00
..
fnmatch.c Add compat/regex.[ch] and compat/fnmatch.[ch]. 2008-06-22 11:32:33 +02:00
fnmatch.h Add compat/regex.[ch] and compat/fnmatch.[ch]. 2008-06-22 11:32:33 +02:00
fopen.c
hstrerror.c
inet_ntop.c
inet_pton.c
memmem.c
mingw.c Windows: A rudimentary poll() emulation. 2008-06-26 08:45:07 +02:00
mingw.h Windows: Implement start_command(). 2008-06-23 13:40:31 +02:00
mkdtemp.c
mmap.c
pread.c
qsort.c
regex.c Add compat/regex.[ch] and compat/fnmatch.[ch]. 2008-06-22 11:32:33 +02:00
regex.h Add compat/regex.[ch] and compat/fnmatch.[ch]. 2008-06-22 11:32:33 +02:00
setenv.c
snprintf.c Add target architecture MinGW. 2008-06-22 11:32:45 +02:00
strcasestr.c
strlcpy.c
strtoumax.c
unsetenv.c