MCPcopy Create free account
hub / github.com/RustPython/RustPython / reinit_thread_mutex_after_fork

Function reinit_thread_mutex_after_fork

crates/common/src/lock.rs:123–125  ·  view source on GitHub ↗
(mutex: &PyThreadMutex<T>)

Source from the content-addressed store, hash-verified

121/// after `fork()`, before any other thread is created.
122#[cfg(unix)]
123pub unsafe fn reinit_thread_mutex_after_fork<T: ?Sized>(mutex: &PyThreadMutex<T>) {
124 unsafe { mutex.raw().reinit_after_fork() }
125}

Callers 1

reinit_io_locksFunction · 0.85

Calls 2

reinit_after_forkMethod · 0.45
rawMethod · 0.45

Tested by

no test coverage detected