summaryrefslogtreecommitdiffstats
path: root/Python/codecs.c
diff options
context:
space:
mode:
authorSam Gross <colesbury@gmail.com>2024-02-15 13:37:54 (GMT)
committerGitHub <noreply@github.com>2024-02-15 13:37:54 (GMT)
commitad4f909e0e7890e027c4ae7fea74586667242ad3 (patch)
tree30037776c2fe7eadb8eda0ecf0df302ef8f5a681 /Python/codecs.c
parentb0e5c35ded6d4a16d7a021c10c99bac94250edd0 (diff)
downloadcpython-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/codecs.c')
0 files changed, 0 insertions, 0 deletions