author | Johannes Schindelin <johannes.schindelin@gmx.de> | |
Sat, 12 Jun 2010 16:32:11 +0000 (11:32 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 13 Jun 2010 16:15:11 +0000 (09:15 -0700) | ||
commit | 685359cf2d1996aed2f1b1e2857528819d27105d | |
tree | 844dd76bc91fcb50e9672325f840ef2dcf4afac0 | tree | snapshot |
parent | 30d00c395e3fb9f104a3f4a85f06a039c989cd8d | commit | diff |
Unify code paths of threaded greps
There were three awfully similar code paths ending the threaded grep. It
is better to avoid duplicated code, though.
This change might very well prevent a race, where the grep patterns were
free()d before waiting that all threads finished.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
There were three awfully similar code paths ending the threaded grep. It
is better to avoid duplicated code, though.
This change might very well prevent a race, where the grep patterns were
free()d before waiting that all threads finished.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/grep.c | diff | blob | history |