diff options
author | Sam Gross <colesbury@gmail.com> | 2024-02-15 13:37:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-15 13:37:54 (GMT) |
commit | ad4f909e0e7890e027c4ae7fea74586667242ad3 (patch) | |
tree | 30037776c2fe7eadb8eda0ecf0df302ef8f5a681 /Python/sysmodule.c | |
parent | b0e5c35ded6d4a16d7a021c10c99bac94250edd0 (diff) | |
download | cpython-ad4f909e0e7890e027c4ae7fea74586667242ad3.zip cpython-ad4f909e0e7890e027c4ae7fea74586667242ad3.tar.gz cpython-ad4f909e0e7890e027c4ae7fea74586667242ad3.tar.bz2 |
gh-115432: Add critical section variant that handles a NULL object (#115433)
This adds `Py_XBEGIN_CRITICAL_SECTION` and
`Py_XEND_CRITICAL_SECTION`, which accept a possibly NULL object as an
argument. If the argument is NULL, then nothing is locked or unlocked.
Otherwise, they behave like `Py_BEGIN/END_CRITICAL_SECTION`.
Diffstat (limited to 'Python/sysmodule.c')
0 files changed, 0 insertions, 0 deletions