added a clear() method to the TimerEventProxy to allow the removal of all pending...
[senf.git] / senf / Scheduler / TimerEventProxy.hh
index 8e813b7..651a6b9 100644 (file)
@@ -41,7 +41,7 @@ namespace scheduler {
 
     /** \brief Deadline timer proxy
 
-        The TimerEventProxy is meant to host long term deadline timers to reduce the load of the
+        The TimerEventProxy is meant to host long %term deadline timers to reduce the load of the
         Scheduler with a huge count of TimerEvent items. It registers deadline timer callbacks which
         will be called when the timer expires.
 
@@ -69,6 +69,11 @@ namespace scheduler {
         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. */
+
+        unsigned numEvents() const;  ///< Returns the number of pending timer events 
+
+        void clear(); ///< Clears all pending timer events
+        
     private:
 #ifndef DOXYGEN
         struct Entry {