We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
os_atomic_init
1 parent c1f3660 commit 956c270Copy full SHA for 956c270
src/shims/atomic.h
@@ -143,6 +143,8 @@ typedef struct { unsigned long __opaque_zero; } os_atomic_dependency_t;
143
144
#define os_atomic_thread_fence(m) atomic_thread_fence(memory_order_##m)
145
146
+#define os_atomic_init(p, v) atomic_init(_os_atomic_c11_atomic(p), v)
147
+
148
#define os_atomic_inc(p, m) \
149
os_atomic_add((p), 1, m)
150
#define os_atomic_inc_orig(p, m) \
0 commit comments