X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Scheduler%2FSignalEvent.hh;h=a5330f297c9cb23fff01a9ba2ca61ba7aa7dd22b;hb=635a822c0f03d4a9107672f2d5becb4f3a195a83;hp=e5f2addeab16a0e9f70375a40ff4ccec738d9322;hpb=db007c39287e3c666dd6b53edc8c3404617c7dd5;p=senf.git diff --git a/Scheduler/SignalEvent.hh b/Scheduler/SignalEvent.hh index e5f2add..a5330f2 100644 --- a/Scheduler/SignalEvent.hh +++ b/Scheduler/SignalEvent.hh @@ -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; };