make compiled in python extension initialization more flexable
[mussa.git] / qui / threading / ThreadManager.cpp
index 8abf2149e0b5ef1e55351128c633bf0e93d5bec5..1586c13cef8c2748087c1856ac342a6a9d94050f 100644 (file)
@@ -18,17 +18,16 @@ ThreadManager::ThreadManager()
   get_gui_proxy();
 }
 
-const InterpreterThread *ThreadManager::create_interpreter() {
-  
+InterpreterThread *ThreadManager::create_interpreter() 
+{  
   static QMutex interpreter_lock;
   static InterpreterThread *interpreter_thread;
   if (interpreter_lock.tryLock()) {
     // we're the first thread
     interpreter_thread = new InterpreterThread();
-    interpreter_thread->start();
   }
-  return interpreter_thread;
   // someone already started a copy of the interpreter
+  return interpreter_thread;
 }
 
 GuiProxy *ThreadManager::get_gui_proxy()