diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/process_loop.cpp | 2 | ||||
-rw-r--r-- | client/process_loop.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/client/process_loop.cpp b/client/process_loop.cpp index 5337c36a..ec9cdd24 100644 --- a/client/process_loop.cpp +++ b/client/process_loop.cpp @@ -263,7 +263,6 @@ ProcessLoop::ProcessLoop(void* owner) , _quitting (false) , _exit_code (0) , _started (false) - { _event_sources.add_trigger(_wakeup_trigger); } @@ -277,6 +276,7 @@ int ProcessLoop::run() { _thread = pthread_self(); _started = true; + on_start_running(); for (;;) { if (_event_sources.wait_events(_timers_queue.get_soonest_timeout())) { _quitting = true; diff --git a/client/process_loop.h b/client/process_loop.h index d9337c7d..2d355f74 100644 --- a/client/process_loop.h +++ b/client/process_loop.h @@ -220,6 +220,7 @@ protected: virtual void on_event() {} }; + virtual void on_start_running() {} void wakeup(); void do_quit(int error_code); |