Scheduler: Implement IdleEvent
[senf.git] / Scheduler / Scheduler.hh
index 9f3d3cd..e1501a7 100644 (file)
@@ -33,6 +33,7 @@
 #include "FdEvent.hh"
 #include "TimerEvent.hh"
 #include "SignalEvent.hh"
+#include "IdleEvent.hh"
 #include "EventHook.hh"
 
 //#include "scheduler.mpp"
@@ -245,6 +246,13 @@ namespace scheduler {
      */
     void terminate(); 
 
+    /** \brief Immediately rescheduler
+
+        Calling yield() will cause the scheduler to terminate the current queue run and immediately
+        rescheduler all pending tasks.
+     */
+    void yield();
+
     /** \brief Return timestamp of last event
 
         This is the timestamp, the last event has been signaled. This is the real time at which the