multipool

Macro create_thread_pool

Source
macro_rules! create_thread_pool {
    (num_threads: $num:expr) => { ... };
    (num_threads: $num:expr, work_stealing: true) => { ... };
    (num_threads: $num:expr, priority: true) => { ... };
    (num_threads: $num:expr, work_stealing: true, priority: true) => { ... };
}
Expand description

Creates a thread pool with various configurations.

This macro supports thread pool creation with custom numbers of threads, work-stealing, and priority-based scheduling.

ยงExamples

use multipool::create_thread_pool;

let pool = create_thread_pool!(num_threads: 8, work_stealing: true, priority: true);
pool.shutdown();