Scheduler: Sort 'events' list by priority
[senf.git] / Scheduler / FIFORunner.hh
index 49d62fa..40154d3 100644 (file)
@@ -66,6 +66,8 @@ namespace detail {
 
             void run();
 
+            bool runnable() const;
+
         protected:
             void setRunnable();
             
@@ -81,6 +83,9 @@ namespace detail {
             friend class FIFORunner;
         };
 
+        typedef boost::filter_iterator<
+            EventManager::IteratorFilter, TaskList::const_iterator> iterator;
+
         using singleton<FIFORunner>::instance;
         using singleton<FIFORunner>::alive;
 
@@ -94,6 +99,9 @@ namespace detail {
 
         unsigned hangCount() const;
 
+        iterator begin() const;
+        iterator end() const;
+
     protected:
 
     private: