summaryrefslogtreecommitdiffstats
path: root/Include/cpython/pyatomic_gcc.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/cpython/pyatomic_gcc.h')
-rw-r--r--Include/cpython/pyatomic_gcc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/cpython/pyatomic_gcc.h b/Include/cpython/pyatomic_gcc.h
index f2ebdee..ef09954 100644
--- a/Include/cpython/pyatomic_gcc.h
+++ b/Include/cpython/pyatomic_gcc.h
@@ -543,5 +543,9 @@ _Py_atomic_fence_seq_cst(void)
{ __atomic_thread_fence(__ATOMIC_SEQ_CST); }
static inline void
+_Py_atomic_fence_acquire(void)
+{ __atomic_thread_fence(__ATOMIC_ACQUIRE); }
+
+ static inline void
_Py_atomic_fence_release(void)
{ __atomic_thread_fence(__ATOMIC_RELEASE); }