Files
git/builtin
Nguyễn Thái Ngọc Duy fd6263fb73 grep: clean up num_threads handling
When NO_PTHREADS is still used in this file, we have two separate code
paths for thread and no thread support. The latter will always have
num_threads remain zero while the former uses num_threads zero as
"default number of threads".

With recent changes blur the line between thread and no-thread
support, this num_threads handling becomes a bit strange so let's
redefine it like this:

- num_threads == 0 means default number of threads and should become
  positive after all configuration and option parsing is done if
  multithread is supported.

- num_threads <= 1 runs no threads. It does not matter if the platform
  supports threading or not.

- num_threads > 1 will run multiple threads and is invalid if
  HAVE_THREADS is false. pthread API is only used in this case.

PS. a new warning is also added when num_threads is forced back to one
because a thread-incompatible option is specified.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2018-11-05 13:42:11 +09:00
..
2018-10-19 13:34:02 +09:00
2018-10-19 13:34:03 +09:00
2018-08-13 14:14:43 -07:00
2018-09-17 13:53:52 -07:00
2018-08-27 14:33:43 -07:00
2018-10-19 13:34:02 +09:00
2018-05-13 10:45:05 +09:00
2018-08-15 15:08:23 -07:00
2018-08-20 15:31:40 -07:00
2018-10-19 13:34:02 +09:00
2018-10-19 13:34:02 +09:00
2018-10-19 13:34:02 +09:00
2018-10-19 13:34:02 +09:00
2018-05-08 15:59:16 +09:00
2018-10-19 13:34:07 +09:00
2018-10-19 13:34:02 +09:00
2018-09-17 13:49:41 -07:00
2018-10-16 16:16:02 +09:00
2018-11-05 13:42:11 +09:00
2018-10-26 14:22:13 +09:00
2018-10-19 13:34:02 +09:00
2018-05-23 14:38:15 +09:00
2018-10-19 13:34:02 +09:00
2018-10-19 13:34:02 +09:00
2018-05-30 14:04:05 +09:00
2018-07-18 12:20:28 -07:00
2018-10-19 13:34:02 +09:00
2018-08-20 15:31:40 -07:00
2018-10-19 13:34:02 +09:00
2018-08-27 14:33:43 -07:00
2018-10-19 13:34:02 +09:00
2018-09-17 13:53:55 -07:00
2018-10-19 13:34:02 +09:00
2018-10-19 13:34:02 +09:00
2018-10-19 13:34:02 +09:00
2018-08-29 11:32:49 -07:00
2018-08-27 14:33:43 -07:00
2018-03-15 12:01:08 -07:00
2018-05-29 00:28:22 +09:00
2018-08-29 11:32:49 -07:00
2018-10-19 13:34:02 +09:00