Skip to main content

Module mutex

Module mutex 

Source
Available on Py_3_13 and wip_feature_std and non-Py_LIMITED_API only.

Re-exportsยง

use core::cell::UnsafeCell; ๐Ÿ”’
use core::marker::PhantomData; ๐Ÿ”’
use core::ops::Deref; ๐Ÿ”’
use core::ops::DerefMut; ๐Ÿ”’
use core::sync::atomic::AtomicBool; ๐Ÿ”’ panic=unwind
use core::sync::atomic::Ordering; ๐Ÿ”’ panic=unwind
use std::sync::LockResult; ๐Ÿ”’
use std::sync::PoisonError; ๐Ÿ”’
use std::thread; ๐Ÿ”’ panic=unwind

Structsยง

Flag ๐Ÿ”’
Guard ๐Ÿ”’
PyMutex
Wrapper for PyMutex, exposing an RAII guard interface.
PyMutexGuard
RAII guard to handle releasing a PyMutex lock.

Functionsยง

map_result ๐Ÿ”’
โš ๏ธ Internal Docs โš ๏ธ Not Public API ๐Ÿ‘‰ Official Docs Here