semaphore

Macro semaphore 

Source
macro_rules! semaphore {
    ($name:ident, $init_count:expr, $total_count:expr, $task_num:expr) => { ... };
}