mirror of
https://github.com/python/cpython.git
synced 2024-11-24 00:38:00 +01:00
b2c3b70c71
Avoid detaching thread state when stopping the world. When re-attaching the thread state, the thread would attempt to resume the top-most critical section, which might now be held by a thread paused for our stop-the-world request. |
||
---|---|---|
.. | ||
clinic | ||
parts.h | ||
pytime.c | ||
README.txt | ||
set.c | ||
test_critical_sections.c | ||
test_lock.c |
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.