use crate::no_alloc::lifo::Worker;
pub trait ExecutorConfig {
const CORE_SIZE: usize;
const QUEUE_SIZE: usize;
}
pub struct SmallConfig;
impl ExecutorConfig for SmallConfig {
const CORE_SIZE: usize = 4;
const QUEUE_SIZE: usize = 256;
}
pub struct LargeConfig;
impl ExecutorConfig for LargeConfig {
const CORE_SIZE: usize = 16;
const QUEUE_SIZE: usize = 128; }
macro_rules! register_config {
($config_type:ty) => {};
}
register_config!(SmallConfig);
register_config!(LargeConfig);