sync: use mfence on windows-tcc (#6079)

This commit is contained in:
Uwe Krüger 2020-08-06 17:31:05 +02:00 committed by GitHub
parent ea76a33b43
commit d63daa0798
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 17 additions and 11 deletions

View file

@ -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