pyo3

Module sync

Source
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.

Modules§

Structs§

Traits§

  • Helper trait for Once to help avoid deadlocking when using a Once when attached to a Python thread.
  • OnceLockExtrustc_has_once_lock
    interpreter and initialization with the OnceLock.

Functions§

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here