MCPcopy Index your code
hub / github.com/RustPython/RustPython / reinit_mutex_after_fork

Function reinit_mutex_after_fork

crates/common/src/lock.rs:97–99  ·  view source on GitHub ↗
(mutex: &PyMutex<T>)

Source from the content-addressed store, hash-verified

95/// after `fork()`, before any other thread is created.
96#[cfg(unix)]
97pub unsafe fn reinit_mutex_after_fork<T: ?Sized>(mutex: &PyMutex<T>) {
98 unsafe { zero_reinit_after_fork(mutex.raw()) }
99}
100
101/// Reset a `PyRwLock` after `fork()`. See [`zero_reinit_after_fork`].
102///

Callers 3

reinit_after_forkMethod · 0.85
reinit_locks_after_forkFunction · 0.85

Calls 2

zero_reinit_after_forkFunction · 0.85
rawMethod · 0.45

Tested by

no test coverage detected