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

Function reset_all_after_fork

crates/vm/src/object/core.rs:474–478  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

472 /// Locks held by parent threads would cause infinite spin in the child.
473 #[cfg(unix)]
474 pub(crate) fn reset_all_after_fork() {
475 for lock in &LOCKS {
476 lock.store(0, Ordering::Release);
477 }
478 }
479}
480
481#[cfg(not(feature = "threading"))]

Callers 1

Calls 1

storeMethod · 0.45

Tested by

no test coverage detected