diff options
author | Johannes Sixt <j6t@kdbg.org> | 2010-03-06 16:40:42 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-03-07 00:37:36 -0800 |
commit | 200a76b74db5c2c75bcf73773cb85c5603ec038e (patch) | |
tree | 997a47438fe7e1ff3a9f649cc1f720c47dee4111 /contrib/buildsystems/Generators | |
parent | Windows: more pthreads functions (diff) | |
download | tgif-200a76b74db5c2c75bcf73773cb85c5603ec038e.tar.xz |
Reimplement async procedures using pthreads
On Windows, async procedures have always been run in threads, and the
implementation used Windows specific APIs. Rewrite the code to use pthreads.
A new configuration option is introduced so that the threaded implementation
can also be used on POSIX systems. Since this option is intended only as
playground on POSIX, but is mandatory on Windows, the option is not
documented.
One detail is that on POSIX it is necessary to set FD_CLOEXEC on the pipe
handles. On Windows, this is not needed because pipe handles are not
inherited to child processes, and the new calls to set_cloexec() are
effectively no-ops.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/buildsystems/Generators')
0 files changed, 0 insertions, 0 deletions