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
6e0fc1a6
Commit
6e0fc1a6
authored
Feb 07, 2016
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mingw: use gcc-like memory barrier
Use the gcc-like memory barrier (__sync_synchronize) on mingw.
parent
8a6d6677
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
src/thread-utils.h
+1
-1
No files found.
src/thread-utils.h
View file @
6e0fc1a6
...
@@ -275,7 +275,7 @@ GIT_INLINE(int) git_atomic_get(git_atomic *a)
...
@@ -275,7 +275,7 @@ GIT_INLINE(int) git_atomic_get(git_atomic *a)
extern
int
git_online_cpus
(
void
);
extern
int
git_online_cpus
(
void
);
#if defined(GIT_THREADS) && defined(
GIT_WIN32
)
#if defined(GIT_THREADS) && defined(
_MSC_VER
)
# define GIT_MEMORY_BARRIER MemoryBarrier()
# define GIT_MEMORY_BARRIER MemoryBarrier()
#elif defined(GIT_THREADS)
#elif defined(GIT_THREADS)
# define GIT_MEMORY_BARRIER __sync_synchronize()
# define GIT_MEMORY_BARRIER __sync_synchronize()
...
...
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