Commit 685359c
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>1 parent 30d00c3 commit 685359c
1 file changed
+5
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
590 | 590 | | |
591 | 591 | | |
592 | 592 | | |
593 | | - | |
594 | 593 | | |
595 | 594 | | |
596 | 595 | | |
| |||
708 | 707 | | |
709 | 708 | | |
710 | 709 | | |
711 | | - | |
712 | 710 | | |
713 | 711 | | |
714 | 712 | | |
| |||
1019 | 1017 | | |
1020 | 1018 | | |
1021 | 1019 | | |
1022 | | - | |
1023 | 1020 | | |
1024 | 1021 | | |
1025 | 1022 | | |
1026 | 1023 | | |
1027 | 1024 | | |
1028 | | - | |
1029 | | - | |
1030 | | - | |
1031 | | - | |
1032 | | - | |
1033 | | - | |
1034 | | - | |
| 1025 | + | |
1035 | 1026 | | |
1036 | 1027 | | |
1037 | 1028 | | |
1038 | 1029 | | |
1039 | | - | |
1040 | | - | |
1041 | | - | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
1042 | 1034 | | |
1043 | 1035 | | |
1044 | | - | |
1045 | | - | |
1046 | | - | |
1047 | | - | |
1048 | 1036 | | |
1049 | 1037 | | |
1050 | 1038 | | |
| |||
0 commit comments