summaryrefslogtreecommitdiffstats
path: root/Include/cpython/pythread.h
Commit message (Collapse)AuthorAgeFilesLines
* [3.13] gh-129296: Fix `pyatomic.h` include paths (GH-129320) (#130667)Miss Islington (bot)2025-02-281-1/+1
| | | | | | | | | | | | gh-129296: Fix `pyatomic.h` include paths (GH-129320) Use relative includes in Include/cpython/pyatomic.h for pyatomic_gcc.h, pyatomic_std.h and pyatomic_msc.h. Do a similar change in Include/cpython/pythread.h for pthread_stubs.h include. (cherry picked from commit 3a974e39d54902699f360bc4db2fd351a6baf3ef) Co-authored-by: Zanie Blue <contact@zanie.dev>
* gh-110014: Remove PY_TIMEOUT_MAX from limited C API (#110217)Victor Stinner2023-10-021-0/+8
| | | | | | | | If the timeout is greater than PY_TIMEOUT_MAX, PyThread_acquire_lock_timed() uses a timeout of PY_TIMEOUT_MAX microseconds, which is around 280.6 years. This case is unlikely and limiting a timeout to 280.6 years sounds like a reasonable trade-off. The constant PY_TIMEOUT_MAX is not used in PyPI top 5,000 projects.
* gh-106320: Remove private _PyThread_at_fork_reinit() function (#108601)Victor Stinner2023-08-291-7/+0
| | | | Move the private function to the internal C API (pycore_pythread.h) and no longer exports it.
* gh-95174: Add pthread stubs for WASI (GH-95234)Christian Heimes2022-07-271-0/+3
| | | Co-authored-by: Brett Cannon <brett@python.org>
* gh-79315: Add Include/cpython/pythread.h header (#91798)Victor Stinner2022-04-211-0/+39