summaryrefslogtreecommitdiff
path: root/grep.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-11-03 09:48:43 +0100
committerJunio C Hamano <gitster@pobox.com>2018-11-05 13:42:11 +0900
commit4002e87cb254298fa2f44b98ee1b618bda0e8b59 (patch)
treeb6ce53021d61401a937b772f5dfd87806dc8d5f2 /grep.h
parent2e1b141a0132ad3afe2c81e43c4d2c9d394f5b1a (diff)
downloadgit-4002e87cb254298fa2f44b98ee1b618bda0e8b59.tar.gz
grep: remove #ifdef NO_PTHREADS
This is a faithful conversion without attempting to improve anything. That comes later. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'grep.h')
-rw-r--r--grep.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/grep.h b/grep.h
index 1a57d12b90..fb04893721 100644
--- a/grep.h
+++ b/grep.h
@@ -229,7 +229,6 @@ int grep_source(struct grep_opt *opt, struct grep_source *gs);
extern struct grep_opt *grep_opt_dup(const struct grep_opt *opt);
extern int grep_threads_ok(const struct grep_opt *opt);
-#ifndef NO_PTHREADS
/*
* Mutex used around access to the attributes machinery if
* opt->use_threads. Must be initialized/destroyed by callers!
@@ -250,9 +249,4 @@ static inline void grep_read_unlock(void)
pthread_mutex_unlock(&grep_read_mutex);
}
-#else
-#define grep_read_lock()
-#define grep_read_unlock()
-#endif
-
#endif