mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
This adds a `_PyRecursiveMutex` type based on `PyMutex` and uses that for the import lock. This fixes some data races in the free-threaded build and generally simplifies the import lock code. |
||
|---|---|---|
| .. | ||
| 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.