Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
grep: move sha1-reading mutex into low-level code
[gitweb.git]
/
grep.c
diff --git
a/grep.c
b/grep.c
index 7a67c2ff6ffa2d155efa68471cdaa04eed6b1f35..db58a29c2b508ecccc56a2cb17ce6ef98f6355ed 100644
(file)
--- a/
grep.c
+++ b/
grep.c
@@
-826,6
+826,12
@@
static inline void grep_attr_unlock(void)
if (grep_use_locks)
pthread_mutex_unlock(&grep_attr_mutex);
}
+
+/*
+ * Same as git_attr_mutex, but protecting the thread-unsafe object db access.
+ */
+pthread_mutex_t grep_read_mutex;
+
#else
#define grep_attr_lock()
#define grep_attr_unlock()