#include <boost/noncopyable.hpp>
-#include <moof/backend.hh>
#include <moof/thread.hh>
}
/**
- * Deconstruct the runloop.
+ * Do one iteration of the runloop.
*/
- ~runloop();
+ void run_once();
/**
void stop(int code = 0);
- /** Get the runloop of the current thread.
- * \return The current runloop or 0 if none is running in the current
- * thread.
- */
- static runloop* current();
-
-
void add_timer(timer& timer);
void remove_timer(timer& timer);
MOOF_DECLARE_MUTEX(timers_mutex_);
uint32_t thread_id_;
#endif
-
-
- backend backend_;
};