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

Function reinit_rwlock_after_fork

crates/common/src/lock.rs:108–110  ·  view source on GitHub ↗
(rwlock: &PyRwLock<T>)

Source from the content-addressed store, hash-verified

106/// after `fork()`, before any other thread is created.
107#[cfg(unix)]
108pub unsafe fn reinit_rwlock_after_fork<T: ?Sized>(rwlock: &PyRwLock<T>) {
109 unsafe { zero_reinit_after_fork(rwlock.raw()) }
110}
111
112/// Reset a `PyThreadMutex` to its initial (unlocked, unowned) state after `fork()`.
113///

Callers 3

reinit_after_forkMethod · 0.85
reinit_after_forkMethod · 0.85
reinit_after_forkMethod · 0.85

Calls 2

zero_reinit_after_forkFunction · 0.85
rawMethod · 0.45

Tested by

no test coverage detected