mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-09 14:11:47 +00:00
spicec: add ProcessLoop::on_start_running()
This commit is contained in:
parent
e50c565b44
commit
5808a99052
@ -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;
|
||||
|
||||
@ -220,6 +220,7 @@ protected:
|
||||
virtual void on_event() {}
|
||||
};
|
||||
|
||||
virtual void on_start_running() {}
|
||||
void wakeup();
|
||||
void do_quit(int error_code);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user