SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 0 Python

gh-111924: Use PyMutex for Runtime-global Locks. (gh-112207)

This replaces some usages of PyThread_type_lock with PyMutex, which does not require memory allocation to initialize.

This simplifies some of the runtime initialization and is also one step towards avoiding changing the default raw memory allocator during initialize/finalization, which can be non-thread-safe in some circumstances.
S
Sam Gross committed
cf6110ba1337cb67e5867d86e7c0e8d923a5bc8d
Parent: db46073
Committed by GitHub <[email protected]> on 12/7/2023, 7:33:40 PM