mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-10 22:55:29 +00:00
mingw: use gcc-like memory barrier
Use the gcc-like memory barrier (__sync_synchronize) on mingw.
This commit is contained in:
parent
8a6d667763
commit
6e0fc1a631
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user