Skip to content

Conversation

@vstinner
Copy link
Member

@vstinnervstinner commented Jun 9, 2020

Add pycore_atomic_funcs.h internal header file. Similar to
pycore_atomic.h but don't require to declare variables as atomic.

https://bugs.python.org/issue39465

@vstinner
Copy link
MemberAuthor

I'm not sure about which memory order should be used.

I'm not sure my Windows implementation implements __ATOMIC_SEQ_CST order.

@vstinner
Copy link
MemberAuthor

I hesitated between pycore_atomic_func.h (without S) and pycore_atomic_funcs.h (with S) for the header filename. I picked pycore_atomic_func.h (without S) :-)

@vstinner
Copy link
MemberAuthor

@vstinner
Copy link
MemberAuthor

@vstinnervstinner changed the title bpo-39465: Add pycore_atomic_func.h internal headerbpo-39465: Add pycore_atomic_funcs.h internal headerDec 23, 2020
Add pycore_atomic_funcs.h internal header file: similar to pycore_atomic.h but don't require to declare variables as atomic. Add _Py_atomic_size_get() and _Py_atomic_size_set() functions.
@vstinnervstinner merged commit 52a327c into python:masterDec 23, 2020
@vstinnervstinner deleted the WIP_atomic_func branch December 23, 2020 02:41
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 13, 2021
Add pycore_atomic_funcs.h internal header file: similar to pycore_atomic.h but don't require to declare variables as atomic. Add _Py_atomic_size_get() and _Py_atomic_size_set() functions.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@vstinner@the-knights-who-say-ni@bedevere-bot