gh-111569: Fix critical sections test on WebAssembly by colesbury · Pull Request #111897 · python/cpython

@colesbury

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.

brettcannon

@colesbury

@colesbury

brettcannon

aisk pushed a commit to aisk/cpython that referenced this pull request

Feb 11, 2024
…111897)

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.

Glyphack pushed a commit to Glyphack/cpython that referenced this pull request

Sep 2, 2024
…111897)

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.