Lines Matching refs:set

449         /// The new mask is the union of the current mask and the specified set.
452 /// complement of the specified set.
454 /// The current mask is replaced by the specified set.
467 /// Specifies a set of [`Signal`]s that may be blocked, waited for, etc.
495 /// Add the specified signal to the set.
501 /// Remove all signals from this set.
507 /// Remove the specified signal from this set.
513 /// Return whether this set includes the specified signal.
525 /// Returns an iterator that yields the signals contained in this set.
530 /// Gets the currently blocked (masked) set of signals for the calling thread.
537 /// Sets the set of signals as the signal mask for the calling thread.
542 /// Adds the set of signals to the signal mask for the calling thread.
547 /// Removes the set of signals from the signal mask for the calling thread.
552 /// Sets the set of signals as the signal mask, and returns the old mask.
669 /// The `SA_SIGINFO` bit in the `flags` argument is ignored (it will be set only if `handler`
698 /// Returns the flags set on the action.
703 /// Returns the set of signals that are blocked during execution of the action's
792 /// Use a signal handler to set a flag variable:
848 set: Option<&SigSet>,
850 if set.is_none() && oldset.is_none() {
855 // if set or oldset is None, pass in null pointers instead
857 set.map_or_else(ptr::null::<libc::sigset_t>,
866 /// Manages the signal mask (set of blocked signals) for the calling thread.
868 /// If the `set` parameter is `Some(..)`, then the signal mask will be updated with the signal set.
869 /// The `how` flag decides the type of update. If `set` is `None`, `how` will be ignored,
874 /// If both `set` and `oldset` is `Some(..)`, the current signal mask will be written into oldset,
875 /// and then it will be updated with `set`.
877 /// If both `set` and `oldset` is None, this function is a no-op.
882 set: Option<&SigSet>,
885 do_pthread_sigmask(how, set, oldset.map(|os| &mut os.sigset as *mut _ ))
892 pub fn sigprocmask(how: SigmaskHow, set: Option<&SigSet>, oldset: Option<&mut SigSet>) -> Result<()> {
893 if set.is_none() && oldset.is_none() {
898 // if set or oldset is None, pass in null pointers instead
900 set.map_or_else(ptr::null::<libc::sigset_t>,
997 // expose a way to set the union members needed by SIGEV_THREAD.
1043 /// **Note:** this constructor does not allow the user to set the
1048 /// **Note:** This constructor also doesn't allow the caller to set the
1147 let mut set = SigSet::all();
1148 set.clear();
1150 assert!(!set.contains(signal));
1335 let set = unsafe { SigSet::from_sigset_t_unchecked(src_set.sigset) };
1338 assert!(!set.contains(signal));
1342 let set = unsafe { SigSet::from_sigset_t_unchecked(src_set.sigset) };
1345 assert!(set.contains(signal));