111 const std::string &
Name()
const;
115 std::deque<void (*)(int)> _handlers;
119 static const std::map<int,std::string,std::less<int> > _names;
This class encapsulates a signal.
Definition DwmSignal.hh:58
const std::string & Name() const
Returns a string representation of the signal ("e.g. "SIGHUP").
Signal(int sigNum)
Construct from a signal number (e.g. SIGHUP).
bool Unblock()
Unblock the signal.
bool IsPending()
Returns true if the signal is currently pending.
int PushHandler(void(*handler)(int))
Pushes a signal onto the top of a stack of signal handlers for the signal.
int PopHandler()
Pops the top signal handler off of the stack of signal handlers.
bool IsBlocked()
Returns true if the signal is currently blocked.
Signal(const Signal &signal)
Copy constructor.
bool Block()
Block the signal.
void Wait()
Waits for the delivery of the signal to the calling thread.