17 #ifndef HH_SENF_Scheduler_SignalEvent_ 18 #define HH_SENF_Scheduler_SignalEvent_ 1 22 #include <boost/function.hpp> 24 #include <boost/intrusive/set_hook.hpp> 37 typedef boost::intrusive::set_base_hook< boost::intrusive::tag<SignalSetTag> >
SignalSetBase;
38 struct SignalSetCompare;
39 struct FindNumericSignal;
40 class SignalDispatcher;
61 typedef boost::function<void (siginfo_t const &)>
Callback;
68 SignalEvent(
int signal, Callback
const & cb,
bool initiallyEnabled=
true);
86 void action(Callback
const & cb);
90 virtual char const * v_type()
const;
91 virtual std::string v_info()
const;
97 friend struct detail::SignalSetCompare;
98 friend struct detail::FindNumericSignal;
99 friend class detail::SignalDispatcher;
FIFORunner public header.
boost::intrusive::set_base_hook< boost::intrusive::tag< SignalSetTag > > SignalSetBase
boost::function< void(siginfo_t const &)> Callback
Callback type.