Lines Matching defs:mask

444     /// Specifies how certain functions should manipulate a signal mask
449 /// The new mask is the union of the current mask and the specified set.
451 /// The new mask is the intersection of the current mask and the
454 /// The current mask is replaced by the specified set.
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.
560 /// signal mask becomes pending, and returns the accepted signal.
670 /// is the `SigAction` variant). `mask` specifies other signals to block during execution of
672 pub fn new(handler: SigHandler, flags: SaFlags, mask: SigSet) -> SigAction {
692 (*p).sa_mask = mask.sigset;
705 pub fn mask(&self) -> SigSet {
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.
872 /// If the 'oldset' parameter is `Some(..)` then the current signal mask will be written into it.
874 /// If both `set` and `oldset` is `Some(..)`, the current signal mask will be written into oldset,
1134 let mut mask = SigSet::empty();
1135 mask.add(SIGUSR1);
1137 assert!(mask.contains(SIGUSR1));
1138 assert!(!mask.contains(SIGUSR2));
1188 .expect("Failed to get existing signal mask!");
1195 SigSet::thread_get_mask().expect("Failed to get new mask!");
1202 .expect("Failed to revert signal mask!");
1212 let mut mask = SigSet::empty();
1213 mask.add(SIGUSR1);
1215 mask.thread_block().expect("assertion failed");
1227 let mut mask = SigSet::empty();
1228 mask.add(SIGUSR1);
1230 mask.thread_unblock().expect("assertion failed");
1242 let mut mask = SigSet::empty();
1243 mask.add(SIGUSR1);
1244 mask.thread_block().unwrap();
1287 let mut mask = SigSet::empty();
1288 mask.add(SIGUSR1);
1290 let action_sig = SigAction::new(handler_sig, flags, mask);
1298 mask = action_sig.mask();
1299 assert!(mask.contains(SIGUSR1));
1300 assert!(!mask.contains(SIGUSR2));
1303 let action_act = SigAction::new(handler_act, flags, mask);
1306 let action_dfl = SigAction::new(SigHandler::SigDfl, flags, mask);
1309 let action_ign = SigAction::new(SigHandler::SigIgn, flags, mask);
1320 let mut mask = SigSet::empty();
1321 mask.add(SIGUSR1);
1322 mask.add(SIGUSR2);
1323 mask.thread_block().unwrap();
1326 assert_eq!(mask.wait().unwrap(), SIGUSR1);