dope_runtime/process/
mod.rs1use std::num::NonZero;
2
3use dope_core::dope_sys::thread;
4
5mod context;
6pub mod failure;
7pub mod gate;
8pub mod lifecycle;
9mod runtime;
10mod shutdown;
11mod terminal;
12pub mod watch;
13
14pub use context::Context;
15pub use runtime::Process;
16pub use shutdown::Shutdown;
17pub use terminal::Terminal;
18
19pub 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};