Skip to content

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

Merged
vstinner merged 4 commits into
python:masterfrom
vstinner:WIP_atomic_func
Dec 23, 2020
Merged

bpo-39465: Add pycore_atomic_funcs.h internal header#20766
vstinner merged 4 commits into
python:masterfrom
vstinner:WIP_atomic_func

Conversation

@vstinner

@vstinnervstinner commented Jun 9, 2020

Copy link
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
MemberAuthor

@vstinner

Copy link
Copy Markdown
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.
@vstinner
vstinner merged commit 52a327c into python:masterDec 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 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