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
a6d151bf
Unverified
Commit
a6d151bf
authored
Nov 21, 2020
by
Edward Thomson
Committed by
GitHub
Nov 21, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5690 from lhchavez/fix-filelimit-compile-error
Fix the `-DTHREADSAFE=OFF` build
parents
4f4f3bfd
aa532e29
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
22 deletions
+23
-22
src/runtime.c
+2
-2
src/thread-utils.h
+21
-20
No files found.
src/runtime.c
View file @
a6d151bf
...
...
@@ -103,8 +103,8 @@ GIT_INLINE(int) init_unlock(void)
# error unknown threading model
#else
# define
mutex_lock() 0
# define
mutex_unlock() 0
# define
init_lock() git___noop()
# define
init_unlock() git___noop()
#endif
...
...
src/thread-utils.h
View file @
a6d151bf
...
...
@@ -235,37 +235,38 @@ GIT_INLINE(int64_t) git_atomic64_get(git_atomic64 *a)
#else
GIT_INLINE
(
int
)
git_threads_global_init
(
void
)
{
return
0
;
}
GIT_INLINE
(
int
)
git___noop
(
void
)
{
return
0
;
}
#define git_threads_global_init git___noop
#define git_thread unsigned int
#define git_thread_create(thread, start_routine, arg)
0
#define git_thread_join(id, status)
(void)0
#define git_thread_create(thread, start_routine, arg)
git___noop()
#define git_thread_join(id, status)
git___noop()
/* Pthreads Mutex */
#define git_mutex unsigned int
GIT_INLINE
(
int
)
git_mutex_init
(
git_mutex
*
mutex
)
\
{
GIT_UNUSED
(
mutex
);
return
0
;
}
GIT_INLINE
(
int
)
git_mutex_lock
(
git_mutex
*
mutex
)
\
{
GIT_UNUSED
(
mutex
);
return
0
;
}
#define git_mutex_unlock(a) (void)0
#define git_mutex_free(a) (void)0
#define git_mutex_init(a) git___noop()
#define git_mutex_init(a) git___noop()
#define git_mutex_lock(a) git___noop()
#define git_mutex_unlock(a) git___noop()
#define git_mutex_free(a) git___noop()
/* Pthreads condition vars */
#define git_cond unsigned int
#define git_cond_init(c
, a) (void)0
#define git_cond_free(c)
(void)0
#define git_cond_wait(c, l)
(void)0
#define git_cond_signal(c)
(void)0
#define git_cond_broadcast(c)
(void)0
#define git_cond_init(c
) git___noop()
#define git_cond_free(c)
git___noop()
#define git_cond_wait(c, l)
git___noop()
#define git_cond_signal(c)
git___noop()
#define git_cond_broadcast(c)
git___noop()
/* Pthreads rwlock */
#define git_rwlock unsigned int
#define git_rwlock_init(a)
0
#define git_rwlock_rdlock(a)
0
#define git_rwlock_rdunlock(a)
(void)0
#define git_rwlock_wrlock(a)
0
#define git_rwlock_wrunlock(a)
(void)0
#define git_rwlock_free(a)
(void)0
#define git_rwlock_init(a)
git___noop()
#define git_rwlock_rdlock(a)
git___noop()
#define git_rwlock_rdunlock(a)
git___noop()
#define git_rwlock_wrlock(a)
git___noop()
#define git_rwlock_wrunlock(a)
git___noop()
#define git_rwlock_free(a)
git___noop()
#define GIT_RWLOCK_STATIC_INIT 0
...
...
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