/// Default maximum graceful drain window in milliseconds (30 seconds).
pub const DEFAULT_SHUTDOWN_DRAIN_TIMEOUT_MS: u64 = 30_000;
/// Default per-callback shutdown hook timeout in milliseconds (5 seconds).
pub const DEFAULT_SHUTDOWN_CALLBACK_TIMEOUT_MS: u64 = 5_000;
/// High bit of each shard's packed atomic state word indicating shutdown has been triggered.
pub const SHUTDOWN_BIT: usize = 1usize << ;
/// Mask extracting the active in-flight guard count from a shard's packed atomic state word.
pub const IN_FLIGHT_MASK: usize = !SHUTDOWN_BIT;
/// Number of cache-line-isolated lock-free in-flight shards (power of two).
pub const SHUTDOWN_SHARD_COUNT: usize = 32;
/// Fibonacci golden-ratio multiplier used to map OS thread stacks uniformly onto shards.
pub const SHARD_HASH_MUL: u64 = 0x9E37_79B9_7F4A_7C15;