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

Method reset_after_fork

crates/vm/src/vm/mod.rs:426–432  ·  view source on GitHub ↗

Reset after fork in the child (only one thread alive).

(&self)

Source from the content-addressed store, hash-verified

424
425 /// Reset after fork in the child (only one thread alive).
426 pub fn reset_after_fork(&self) {
427 self.requested.store(false, Ordering::Relaxed);
428 self.world_stopped.store(false, Ordering::Relaxed);
429 self.requester.store(0, Ordering::Relaxed);
430 self.thread_countdown.store(0, Ordering::Relaxed);
431 stw_trace(format_args!("reset-after-fork"));
432 }
433
434 #[inline]
435 pub(crate) fn requester_ident(&self) -> u64 {

Callers 1

py_os_after_fork_childFunction · 0.80

Calls 2

stw_traceFunction · 0.85
storeMethod · 0.45

Tested by

no test coverage detected