17 #ifndef HH_SENF_Scheduler_EventHook_ 18 #define HH_SENF_Scheduler_EventHook_ 1 21 #include <boost/function.hpp> 22 #include <boost/intrusive/list_hook.hpp> 32 struct EventHookListTag;
33 typedef boost::intrusive::list_base_hook< boost::intrusive::tag<EventHookListTag> >
EventHookListBase;
34 class EventHookDispatcher;
68 static Priority
const PRE = PRIORITY_HIGH;
69 static Priority
const POST = PRIORITY_LOW;
75 EventHook(std::string
const & name, Callback
const & cb,
76 Priority priority,
bool initiallyEnabled =
true);
97 void action(Callback
const & cb);
102 virtual void v_run();
103 virtual char const * v_type()
const;
104 virtual std::string v_info()
const;
108 friend class detail::EventHookDispatcher;
boost::intrusive::list_base_hook< boost::intrusive::tag< EventHookListTag > > EventHookListBase
FIFORunner public header.
boost::function< void()> Callback