Skip to main content

reinit_mutex_after_fork

Function reinit_mutex_after_fork 

Source
pub unsafe fn reinit_mutex_after_fork<T: ?Sized>(mutex: &PyMutex<T>)
Expand description

Reset a PyMutex after fork(). See zero_reinit_after_fork.

ยงSafety

Must only be called from the single-threaded child process immediately after fork(), before any other thread is created.