Skip to main content

dope_runtime/process/
mod.rs

1use std::num::NonZero;
2
3use dope_core::dope_sys::thread;
4
5mod context;
6pub mod control;
7pub mod failure;
8pub mod gate;
9mod runtime;
10mod shutdown;
11mod terminal;
12pub mod watch;
13
14pub use context::Context;
15pub use runtime::Runtime;
16pub use shutdown::Shutdown;
17pub use terminal::Terminal;
18
19/// Stack extent shared by process workers and their matching test workers.
20pub const STACK: NonZero<usize> = {
21    let bytes = NonZero::<usize>::MIN.saturating_add(8 * 1024 * 1024 - 1);
22    assert!(bytes.get() >= thread::STACK_MIN);
23    bytes
24};