mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-05 06:59:32 +03:00
add space after _Atomic to prevent errors on msvc without /TP (see PR #452)
This commit is contained in:
parent
f0f9aecfe4
commit
5b9409f4d6
1 changed files with 2 additions and 2 deletions
|
@ -173,7 +173,7 @@ static inline uintptr_t mi_atomic_exchange_explicit(_Atomic(uintptr_t)*p, uintpt
|
||||||
}
|
}
|
||||||
static inline void mi_atomic_thread_fence(mi_memory_order mo) {
|
static inline void mi_atomic_thread_fence(mi_memory_order mo) {
|
||||||
(void)(mo);
|
(void)(mo);
|
||||||
_Atomic(uintptr_t)x = 0;
|
_Atomic(uintptr_t) x = 0;
|
||||||
mi_atomic_exchange_explicit(&x, 1, mo);
|
mi_atomic_exchange_explicit(&x, 1, mo);
|
||||||
}
|
}
|
||||||
static inline uintptr_t mi_atomic_load_explicit(_Atomic(uintptr_t) const* p, mi_memory_order mo) {
|
static inline uintptr_t mi_atomic_load_explicit(_Atomic(uintptr_t) const* p, mi_memory_order mo) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue