mirror of
https://github.com/janet-lang/janet
synced 2025-09-10 06:46:08 +00:00
Squashed commit of the following:
commit c5b3da1ffe870410b7241b78ff6a88319e98b14d Author: Calvin Rose <calsrose@gmail.com> Date: Fri May 16 18:35:33 2025 -0500 Inter
This commit is contained in:
@@ -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