Mercurial > hg > octave-nkf
diff libgui/src/octave-qt-link.cc @ 16432:fe4cd846c3e7
separate octave interpreter thread creation from execution
* main-window.cc (main_window::construct): Call
octave_qt_link::execute_interpreter after all signal connections are
made.
* libgui/src/module.mk (octave_gui_MOC): Remove
src/moc-octave-main-thread.cc from the list.
* octave-main-thread.h, octave-main-thread.cc
(octave_main_thread::execute_interpreter): New function. Call start.
(octave_main_thread::ready): Delete signal and all uses.
* octave_qt_link.h, octave_qt_link.cc
(octave_qt_link::octave_qt_link): Don't call start for _main_thread.
(octave_qt_link::execute_interpreter): New function.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 04 Apr 2013 13:27:21 -0400 |
parents | 5982d469f79b |
children | 919796a440c6 |
line wrap: on
line diff
--- a/libgui/src/octave-qt-link.cc +++ b/libgui/src/octave-qt-link.cc @@ -35,8 +35,12 @@ octave_qt_link::octave_qt_link (void) : octave_link (), main_thread (new octave_main_thread) { - // Start the first one. - main_thread->start (); +} + +void +octave_qt_link::execute_interpreter (void) +{ + main_thread->execute_interpreter (); } void