X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FScheduler%2FTimerEventProxy.hh;h=3517db60248e370c95a179bbdab5f3a8237aed7c;hb=9cb871b939efe93e35dd96808d25089399acfc46;hp=08301ec306efaa8e4f7932d8c9cfa7d1a13354c2;hpb=3a43b572a2c0028b353d47e86fa7546633d6e2cf;p=senf.git diff --git a/senf/Scheduler/TimerEventProxy.hh b/senf/Scheduler/TimerEventProxy.hh index 08301ec..3517db6 100644 --- a/senf/Scheduler/TimerEventProxy.hh +++ b/senf/Scheduler/TimerEventProxy.hh @@ -50,7 +50,7 @@ namespace scheduler { host a big count of timers. */ template - class TimerEventProxy + class TimerEventProxy { public: typedef boost::function Callback; @@ -59,18 +59,18 @@ namespace scheduler { TimerEventProxy(std::string const & name, console::DirectoryNode & node); /**< \brief Instantiate a TimerEventProxy and add the list command to the give DirectoryNode */ - + void add(ClockService::clock_type timeout, IdType const & id, Callback cb); ///< Add new deadline timer - + bool remove(IdType const & id); ///< Remove timer by given \a id. - + std::vector > list() const; ///< Returns a vector of all active timers with timeout and id. - + ClockService::clock_type timeout(IdType const & id) const; ///< Returns timeout for given id - /**< if no timer for this id is registered \a 0 is returned. */ + /**< if no timer for this id is registered \a 0 is returned. */ private: #ifndef DOXYGEN struct Entry { @@ -90,11 +90,11 @@ namespace scheduler { boost::multi_index::indexed_by< boost::multi_index::ordered_non_unique< boost::multi_index::tag, - boost::multi_index::member + boost::multi_index::member >, boost::multi_index::ordered_unique< boost::multi_index::tag, - boost::multi_index::member + boost::multi_index::member > > > EntrySet_t; @@ -104,7 +104,7 @@ namespace scheduler { EntrySet_t entrySet; EntrySetById_t & entrySetById; EntrySetByTimeout_t & entrySetByTimeout; - + scheduler::TimerEvent timer; void timerEvent(); // callback for the Scheduler timer event