]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-108337: Add pyatomic.h header (#108701)
authorVictor Stinner <vstinner@python.org>
Thu, 31 Aug 2023 21:41:18 +0000 (23:41 +0200)
committerGitHub <noreply@github.com>
Thu, 31 Aug 2023 21:41:18 +0000 (21:41 +0000)
commit2bd960b57944107fbfbd8ff005b4223e1ea6555f
tree792ca10d0f2ed817b47df46085079b374bc043d7
parentc6d56135e151a19c79d002cb1f1dbcd1c766c51d
gh-108337: Add pyatomic.h header (#108701)

This adds a new header that provides atomic operations on common data
types. The intention is that this will be exposed through Python.h,
although that is not the case yet. The only immediate use is in
the test file.

Co-authored-by: Sam Gross <colesbury@gmail.com>
17 files changed:
Doc/whatsnew/3.13.rst
Include/cpython/pyatomic.h [new file with mode: 0644]
Include/cpython/pyatomic_gcc.h [new file with mode: 0644]
Include/cpython/pyatomic_msc.h [new file with mode: 0644]
Include/cpython/pyatomic_std.h [new file with mode: 0644]
Include/internal/pycore_atomic.h
Lib/test/test_capi/test_pyatomic.py [new file with mode: 0644]
Makefile.pre.in
Misc/NEWS.d/next/C API/2023-08-22-13-00-54.gh-issue-108337.wceHZm.rst [new file with mode: 0644]
Modules/Setup.stdlib.in
Modules/_testcapi/parts.h
Modules/_testcapi/pyatomic.c [new file with mode: 0644]
Modules/_testcapimodule.c
PCbuild/_testcapi.vcxproj
PCbuild/_testcapi.vcxproj.filters
PCbuild/pythoncore.vcxproj
PCbuild/pythoncore.vcxproj.filters