diff options
| author | 2023-10-21 10:40:57 -0500 | |
|---|---|---|
| committer | 2023-10-21 10:40:57 -0500 | |
| commit | 609b629c2295e7df71314dbb7b2ca2be83063bdf (patch) | |
| tree | 511593e93d844225baea40767666c60b46bb06fe /src/include | |
| parent | Be a bit safer with reference counting. (diff) | |
Add support for atomic loads in Janet's atomic abstraction.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/janet.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/janet.h b/src/include/janet.h index ea7d34db..5724af2b 100644 --- a/src/include/janet.h +++ b/src/include/janet.h @@ -647,6 +647,7 @@ typedef int32_t JanetAtomicInt; #endif JANET_API JanetAtomicInt janet_atomic_inc(JanetAtomicInt volatile *x); JANET_API JanetAtomicInt janet_atomic_dec(JanetAtomicInt volatile *x); +JANET_API JanetAtomicInt janet_atomic_load(JanetAtomicInt volatile *x); /* We provide three possible implementations of Janets. The preferred * nanboxing approach, for 32 or 64 bits, and the standard C version. Code in the rest of the |
