42 #ifndef _DWMSIGNAL_HH_ 43 #define _DWMSIGNAL_HH_ 112 const std::string &
Name()
const;
116 std::deque<void (*)(int)> _handlers;
120 static void FillNames();
121 static std::map<int,std::string,std::less<int> > _names;
127 #endif // _DWMSIGNAL_HH_ int PushHandler(void(*handler)(int))
Pushes a signal onto the top of a stack of signal handlers for the signal.
const std::string & Name() const
Returns a string representation of the signal ("e.g. "SIGHUP").
Definition: DwmBZ2IO.hh:67
bool IsPending()
Returns true if the signal is currently pending.
void Wait()
Waits for the delivery of the signal to the calling thread.
bool Block()
Block the signal.
int PopHandler()
Pops the top signal handler off of the stack of signal handlers.
bool Unblock()
Unblock the signal.
This class encapsulates a signal.
Definition: DwmSignal.hh:58
bool IsBlocked()
Returns true if the signal is currently blocked.