/// Initializes a new semaphore instance.
Initializes a new semaphore instance.
Initializes a new semaphore instance .
pub const fn new(tasks: BooleanVector) -> Self {
        Self {
            flags: RefCell::new(0),
            tasks,
        }
    }
pub const fn new ( tasks : BooleanVector ) -> Self { Self { flags : RefCell :: new ( 0 ) , tasks , } }
Initializes a new semaphore instance.
Initializes a new semaphore instance .
tasks
BooleanVector