mirror of
https://github.com/python/cpython.git
synced 2024-11-24 00:38:00 +01:00
289af86122
This adds a macro `Py_CAN_START_THREADS` that corresponds to the Python function `test.support.threading_helper.can_start_thread()`. WASI and some Emscripten builds do not have a working pthread implementation. This macro is used to guard the critical sections C API tests that require a working threads implementation. |
||
---|---|---|
.. | ||
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.