/// Finds the next queued signal that is not blocked by the given mask, removes it from the
/// queue, and returns it.
Finds the next queued signal that is not blocked by the given mask, removes it from the
queue, and returns it.
Finds the next queued signal that is not blocked by the given mask removes it from the queue and returns it .
pub fn take_next_allowed_by_mask(&mut self, mask: sigset_t) -> Option<SignalInfo> {
        // Find the first non-blocked signal
        let index = self.queue.iter().position(|sig| !sig.signal.is_in_set(mask))?;
        self.queue.remove(index)
    }
pub fn take_next_allowed_by_mask ( & mut self , mask : sigset_t ) -> Option < SignalInfo > { // Find the first non-blocked signal let index = self . queue . iter ( ) . position ( | sig | ! sig . signal . is_in_set ( mask ) ) ? ; self . queue . remove ( index ) }
Finds the next queued signal that is not blocked by the given mask, removes it from the
queue, and returns it.
Finds the next queued signal that is not blocked by the given mask removes it from the queue and returns it .
&mut self
mask
sigset_t