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
fa16a6ec
Commit
fa16a6ec
authored
Aug 01, 2012
by
Michael Schubert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable pthread condition vars
parent
2f05339e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
src/thread-utils.h
+7
-7
No files found.
src/thread-utils.h
View file @
fa16a6ec
...
...
@@ -38,13 +38,13 @@ GIT_INLINE(void) git_atomic_set(git_atomic *a, int val)
#define git_mutex_unlock(a) pthread_mutex_unlock(a)
#define git_mutex_free(a) pthread_mutex_destroy(a)
/* Pthreads condition vars
-- disabled by now
*/
#define git_cond
unsigned int //
pthread_cond_t
#define git_cond_init(c
, a) (void)0 //pthread_cond_init(c, a
)
#define git_cond_free(c)
(void)0 //
pthread_cond_destroy(c)
#define git_cond_wait(c, l)
(void)0 //
pthread_cond_wait(c, l)
#define git_cond_signal(c)
(void)0 //
pthread_cond_signal(c)
#define git_cond_broadcast(c)
(void)0 //
pthread_cond_broadcast(c)
/* Pthreads condition vars */
#define git_cond pthread_cond_t
#define git_cond_init(c
) pthread_cond_init(c, NULL
)
#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)
GIT_INLINE
(
int
)
git_atomic_inc
(
git_atomic
*
a
)
{
...
...
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