mirror of
https://github.com/janet-lang/janet
synced 2026-04-18 04:41:28 +00:00
Compare commits
1 Commits
make-modul
...
atomic-loa
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c5b3da1ffe |
@@ -591,7 +591,7 @@ JanetAtomicInt janet_atomic_load(JanetAtomicInt volatile *x) {
|
|||||||
|
|
||||||
JanetAtomicInt janet_atomic_load_relaxed(JanetAtomicInt volatile *x) {
|
JanetAtomicInt janet_atomic_load_relaxed(JanetAtomicInt volatile *x) {
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
return _InterlockedOrNoFence(x, 0);
|
return _InterlockedOr(x, 0);
|
||||||
#elif defined(JANET_USE_STDATOMIC)
|
#elif defined(JANET_USE_STDATOMIC)
|
||||||
return atomic_load_explicit(x, memory_order_relaxed);
|
return atomic_load_explicit(x, memory_order_relaxed);
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user