Add threaded versions of functions in symlinks.c.
authorJared Hance <jaredhance@gmail.com>
Sat, 3 Mar 2012 02:31:15 +0000 (21:31 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sat, 3 Mar 2012 07:56:28 +0000 (23:56 -0800)
commit15438d5a56acfd08545a11630821179334eb6979
tree8b9ae9765fb8415e6fc1182d6704647c52e4b038
parent70eb130768d17c33b9efbf60d7953cf6a57daecb
Add threaded versions of functions in symlinks.c.

check_leading_path() and has_dirs_only_path() both always use the default
cache, which could be a caveat for adding parallelism (which is a concern
and even a GSoC proposal).

Reimplement these two in terms of new threaded_check_leading_path() and
threaded_has_dirs_only_path() that take their own copy of the cache.

Signed-off-by: Jared Hance <jaredhance@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
symlinks.c