mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
sync: use mfence
on windows-tcc (#6079)
This commit is contained in:
2
thirdparty/stdatomic/win/atomic.h
vendored
2
thirdparty/stdatomic/win/atomic.h
vendored
@ -123,7 +123,7 @@ __CRT_INLINE SHORT _InterlockedExchangeAdd16(SHORT volatile *Addend, SHORT Value
|
||||
#define InterlockedIncrement64 _InterlockedExchangeAdd64
|
||||
|
||||
__CRT_INLINE VOID __faststorefence() {
|
||||
__asm__ __volatile__ ("sfence");
|
||||
__asm__ __volatile__ ("mfence");
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user