X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fmoof%2Frunloop.hh;h=29529521e8d16c96a35c4472fbe603e93396e8ce;hp=f70abdef3891bf3b687633f71380099c677790cf;hb=6c9943707d4f33035830eba0587a61a34eaecbc2;hpb=af88821a172c4dfd138b91b2a5148ae50b502fa2 diff --git a/src/moof/runloop.hh b/src/moof/runloop.hh index f70abde..2952952 100644 --- a/src/moof/runloop.hh +++ b/src/moof/runloop.hh @@ -21,7 +21,6 @@ #include -#include #include @@ -51,9 +50,9 @@ public: } /** - * Deconstruct the runloop. + * Do one iteration of the runloop. */ - ~runloop(); + void run_once(); /** @@ -69,13 +68,6 @@ public: 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); @@ -93,9 +85,6 @@ private: MOOF_DECLARE_MUTEX(timers_mutex_); uint32_t thread_id_; #endif - - - backend backend_; };