diff options
author | Patrick Steinhardt <ps@pks.im> | 2016-06-20 19:48:19 +0200 |
---|---|---|
committer | Carlos MartÃn Nieto <cmn@dwim.me> | 2016-10-01 17:40:39 +0200 |
commit | 1b8253168a3159b6822f1f8d41d1c32cf6d29b42 (patch) | |
tree | 009af83dfcf6b67324516858dfa7648769817a24 /src | |
parent | 40b243bf5a6c77e01306f447b4bef7642013b9dc (diff) | |
download | libgit2-1b8253168a3159b6822f1f8d41d1c32cf6d29b42.tar.gz |
threads: remove unused function pthread_cond_broadcast
Diffstat (limited to 'src')
-rw-r--r-- | src/thread-utils.h | 1 | ||||
-rw-r--r-- | src/win32/pthread.c | 4 | ||||
-rw-r--r-- | src/win32/pthread.h | 1 |
3 files changed, 0 insertions, 6 deletions
diff --git a/src/thread-utils.h b/src/thread-utils.h index 29b5d1eee..5073c2a8b 100644 --- a/src/thread-utils.h +++ b/src/thread-utils.h @@ -52,7 +52,6 @@ typedef git_atomic git_atomic_ssize; #define git_cond_free(c) pthread_cond_destroy(c) #define git_cond_wait(c, l) pthread_cond_wait(c, l) #define git_cond_signal(c) pthread_cond_signal(c) -#define git_cond_broadcast(c) pthread_cond_broadcast(c) /* Pthread (-ish) rwlock * diff --git a/src/win32/pthread.c b/src/win32/pthread.c index 142c1afdf..abf047025 100644 --- a/src/win32/pthread.c +++ b/src/win32/pthread.c @@ -156,10 +156,6 @@ int pthread_cond_signal(pthread_cond_t *cond) return 0; } -/* pthread_cond_broadcast is not implemented because doing so with just - * Win32 events is quite complicated, and no caller in libgit2 uses it - * yet. - */ int pthread_num_processors_np(void) { DWORD_PTR p, s; diff --git a/src/win32/pthread.h b/src/win32/pthread.h index 3ff95e89b..9d314c89e 100644 --- a/src/win32/pthread.h +++ b/src/win32/pthread.h @@ -56,7 +56,6 @@ int pthread_cond_init(pthread_cond_t *, const pthread_condattr_t *); int pthread_cond_destroy(pthread_cond_t *); int pthread_cond_wait(pthread_cond_t *, git_mutex *); int pthread_cond_signal(pthread_cond_t *); -/* pthread_cond_broadcast is not supported on Win32 yet. */ int pthread_num_processors_np(void); |