Skip to main content

reinit_rwlock_after_fork

Function reinit_rwlock_after_fork 

Source
pub unsafe fn reinit_rwlock_after_fork<T: ?Sized>(rwlock: &PyRwLock<T>)
Expand description

Reset a PyRwLock 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.