Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
1b825316
Commit
1b825316
authored
Jun 20, 2016
by
Patrick Steinhardt
Committed by
Carlos Martín Nieto
Oct 01, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
threads: remove unused function pthread_cond_broadcast
parent
40b243bf
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
6 deletions
+0
-6
src/thread-utils.h
+0
-1
src/win32/pthread.c
+0
-4
src/win32/pthread.h
+0
-1
No files found.
src/thread-utils.h
View file @
1b825316
...
@@ -52,7 +52,6 @@ typedef git_atomic git_atomic_ssize;
...
@@ -52,7 +52,6 @@ typedef git_atomic git_atomic_ssize;
#define git_cond_free(c) pthread_cond_destroy(c)
#define git_cond_free(c) pthread_cond_destroy(c)
#define git_cond_wait(c, l) pthread_cond_wait(c, l)
#define git_cond_wait(c, l) pthread_cond_wait(c, l)
#define git_cond_signal(c) pthread_cond_signal(c)
#define git_cond_signal(c) pthread_cond_signal(c)
#define git_cond_broadcast(c) pthread_cond_broadcast(c)
/* Pthread (-ish) rwlock
/* Pthread (-ish) rwlock
*
*
...
...
src/win32/pthread.c
View file @
1b825316
...
@@ -156,10 +156,6 @@ int pthread_cond_signal(pthread_cond_t *cond)
...
@@ -156,10 +156,6 @@ int pthread_cond_signal(pthread_cond_t *cond)
return
0
;
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
)
int
pthread_num_processors_np
(
void
)
{
{
DWORD_PTR
p
,
s
;
DWORD_PTR
p
,
s
;
...
...
src/win32/pthread.h
View file @
1b825316
...
@@ -56,7 +56,6 @@ int pthread_cond_init(pthread_cond_t *, const pthread_condattr_t *);
...
@@ -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_destroy
(
pthread_cond_t
*
);
int
pthread_cond_wait
(
pthread_cond_t
*
,
git_mutex
*
);
int
pthread_cond_wait
(
pthread_cond_t
*
,
git_mutex
*
);
int
pthread_cond_signal
(
pthread_cond_t
*
);
int
pthread_cond_signal
(
pthread_cond_t
*
);
/* pthread_cond_broadcast is not supported on Win32 yet. */
int
pthread_num_processors_np
(
void
);
int
pthread_num_processors_np
(
void
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment