spicec: add ProcessLoop::on_start_running()

This commit is contained in:
Arnon Gilboa 2010-10-17 11:45:50 +02:00
parent e50c565b44
commit 5808a99052
2 changed files with 2 additions and 1 deletions

View File

@ -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;

View File

@ -220,6 +220,7 @@ protected:
virtual void on_event() {}
};
virtual void on_start_running() {}
void wakeup();
void do_quit(int error_code);