mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
sync: use mfence
on windows-tcc (#6079)
This commit is contained in:
parent
ea76a33b43
commit
d63daa0798
9 changed files with 17 additions and 11 deletions
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue