mirror of https://github.com/python/cpython
ad4f909e0e
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`. |
||
---|---|---|
.. | ||
clinic | ||
README.txt | ||
parts.h | ||
pytime.c | ||
set.c | ||
test_critical_sections.c | ||
test_lock.c |
README.txt
Tests in this directory are compiled into the _testinternalcapi extension. The main file for the extension is Modules/_testinternalcapimodule.c, which calls `_PyTestInternalCapi_Init_*` from these functions. See Modules/_testcapi/README.txt for guideline when writing C test code.