X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Scheduler%2FSignalEvent.hh;h=d3ff3ab796bf74ebde33865f3a0aa88db752116d;hb=87204d50de0c429f265aec817bc9efd9af816082;hp=e5f2addeab16a0e9f70375a40ff4ccec738d9322;hpb=db007c39287e3c666dd6b53edc8c3404617c7dd5;p=senf.git diff --git a/Scheduler/SignalEvent.hh b/Scheduler/SignalEvent.hh index e5f2add..d3ff3ab 100644 --- a/Scheduler/SignalEvent.hh +++ b/Scheduler/SignalEvent.hh @@ -23,14 +23,14 @@ /** \file \brief SignalDispatcher public header */ -#ifndef HH_SignalDispatcher_ -#define HH_SignalDispatcher_ 1 +#ifndef HH_SENF_Scheduler_SignalEvent_ +#define HH_SENF_Scheduler_SignalEvent_ 1 // Custom includes #include #include #include "FIFORunner.hh" -#include "../boost/intrusive/iset_hook.hpp" +#include //#include "SignalEvent.mpp" ///////////////////////////////hh.p//////////////////////////////////////// @@ -60,7 +60,7 @@ namespace scheduler { callback is a member function it should be defined as a class member). */ class SignalEvent - : public FIFORunner::TaskInfo, + : public detail::FIFORunner::TaskInfo, public detail::SignalSetBase { public: @@ -91,11 +91,13 @@ namespace scheduler { void disable(); ///< Enable signal event registration void enable(); ///< Disable the signal event registration - bool enabled() const; ///< \c true, if event enabled, \c false otherwise + void action(Callback const & cb); ///< Change signal event callback private: - virtual void run(); + virtual void v_run(); + virtual char const * v_type() const; + virtual std::string v_info() const; int signal_; Callback cb_; @@ -104,7 +106,6 @@ namespace scheduler { friend class detail::SignalSetCompare; friend class detail::FindNumericSignal; friend class detail::SignalDispatcher; - friend class senf::Scheduler; };