Commit 6e0fc1a6 by Edward Thomson

mingw: use gcc-like memory barrier

Use the gcc-like memory barrier (__sync_synchronize) on mingw.
parent 8a6d6677
...@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment