Back to index

natlog  0.91.0
add.cc
Go to the documentation of this file.
00001 #include "signal.ih"
00002 
00003 void Signal::add(size_t signum, SignalHandler &object)
00004 {
00005     verify(signum, "Signal::add");
00006 
00007     if (d_signals.size() <= signum)
00008         d_signals.resize(signum + 1);
00009 
00010     d_signals[signum].push_back(&object);
00011 
00012     signal(signum, handler); 
00013 }