Skip to content

Commit

Permalink
Add link to atomic_thread_fence documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
colesbury committed Aug 24, 2023
1 parent 2d08290 commit 71d981e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Include/cpython/pyatomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,10 @@ static inline void
_Py_atomic_store_ptr_release(void *address, void *value);


// Sequential consistency fence
// Sequential consistency fence. C11 fences have complex semantics. When
// possible, use the atomic operations on variables defined above, which
// generally do not require explicit use of a fence.
// See https://en.cppreference.com/w/cpp/atomic/atomic_thread_fence
static inline void _Py_atomic_fence_seq_cst(void);

// Release fence
Expand Down

0 comments on commit 71d981e

Please sign in to comment.