Ack.

On 10/17/2010 04:13 PM, Arnon Gilboa wrote:
---
  client/process_loop.cpp |    2 +-
  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 5337c36..ec9cdd2 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 d9337c7..2d355f7 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);

_______________________________________________
Spice-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to