Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-39465: Add pycore_atomic_funcs.h internal header #20766

Merged
merged 4 commits into from
Dec 23, 2020
Merged

bpo-39465: Add pycore_atomic_funcs.h internal header #20766

merged 4 commits into from
Dec 23, 2020

Conversation

vstinner
Copy link
Member

@vstinner vstinner 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
Member Author

vstinner commented Jun 9, 2020

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
Member Author

vstinner commented Jun 9, 2020

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
Member Author

@vstinner
Copy link
Member Author

See also https://bugs.python.org/issue22038

@vstinner vstinner changed the title bpo-39465: Add pycore_atomic_func.h internal header bpo-39465: Add pycore_atomic_funcs.h internal header Dec 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.
@vstinner vstinner merged commit 52a327c into python:master Dec 23, 2020
@vstinner vstinner 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 free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants