gambit is hosted by Hepforge, IPPP Durham
GAMBIT  v1.5.0-252-gf9a3f78
a Global And Modular Bsm Inference Tool
signal_helpers.cpp
Go to the documentation of this file.
1 // GAMBIT: Global and Modular BSM Inference Tool
2 // *********************************************
17 
19 #include <cstddef> // for NULL
20 
21 namespace Gambit
22 {
24  sigset_t* signal_mask()
25  {
26  static sigset_t mask;
27  return &mask;
28  }
29 
32  {
33  sigprocmask(SIG_BLOCK, signal_mask(), NULL);
34  }
35 
37  {
38  sigprocmask(SIG_UNBLOCK, signal_mask(), NULL);
39  }
41 
42 }
Helper functions for dealing with POSIX signals.
void unblock_signals()
void block_signals()
Signal blocking/unblocking.
sigset_t * signal_mask()
Getter for global signal set.
TODO: see if we can use this one:
Definition: Analysis.hpp:33