grep: enable threading with -p and -W using lazy attribute lookup
authorThomas Rast <trast@student.ethz.ch>
Mon, 12 Dec 2011 21:16:07 +0000 (22:16 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 16 Dec 2011 23:47:10 +0000 (15:47 -0800)
Lazily load the userdiff attributes in match_funcname(). Use a
separate mutex around this loading to protect the (not thread-safe)
attributes machinery. This lets us re-enable threading with -p and
-W while reducing the overhead caused by looking up attributes.

Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found