Expand description
Synchronization mechanisms based on the Python GIL.
With the acceptance of PEP 703 (aka a “freethreaded Python”) for Python 3.13, these are likely to undergo significant developments in the future.
Structs§
- A write-once primitive similar to
std::sync::OnceLock<T>
. - Value with concurrent access protected by the GIL.
Traits§
- Helper trait for
Once
to help avoid deadlocking when using aOnce
when attached to a Python thread. - interpreter and initialization with the
OnceLock
.
Functions§
- Executes a closure with a Python critical section held on an object.