Skip to content

Commit 20d078d

Browse files
committed
threads: remove unused function pthread_cond_broadcast
1 parent 1c13540 commit 20d078d

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

src/thread-utils.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ typedef git_atomic git_atomic_ssize;
5252
#define git_cond_free(c) pthread_cond_destroy(c)
5353
#define git_cond_wait(c, l) pthread_cond_wait(c, l)
5454
#define git_cond_signal(c) pthread_cond_signal(c)
55-
#define git_cond_broadcast(c) pthread_cond_broadcast(c)
5655

5756
/* Pthread (-ish) rwlock
5857
*

src/win32/pthread.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,6 @@ int pthread_cond_signal(pthread_cond_t *cond)
156156
return 0;
157157
}
158158

159-
/* pthread_cond_broadcast is not implemented because doing so with just
160-
* Win32 events is quite complicated, and no caller in libgit2 uses it
161-
* yet.
162-
*/
163159
int pthread_num_processors_np(void)
164160
{
165161
DWORD_PTR p, s;

src/win32/pthread.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ int pthread_cond_init(pthread_cond_t *, const pthread_condattr_t *);
5656
int pthread_cond_destroy(pthread_cond_t *);
5757
int pthread_cond_wait(pthread_cond_t *, git_mutex *);
5858
int pthread_cond_signal(pthread_cond_t *);
59-
/* pthread_cond_broadcast is not supported on Win32 yet. */
6059

6160
int pthread_num_processors_np(void);
6261

0 commit comments

Comments
 (0)