Mercurial > octave-antonio
comparison libgui/src/octave-qt-link.cc @ 20136:46fb763e5f3a
Move octave_qt_link thread affinity back to the GUI thread (bug #44912)
* octave-qt-link.cc (octave_qt_link::octave_qt_link): Leave qt-link object
in GUI thread by removing moveToThread() from constructor.
author | Daniel J Sebald <daniel.sebald@ieee.org> |
---|---|
date | Fri, 24 Apr 2015 23:36:59 -0500 |
parents | d7bea5b11fc3 |
children |
comparison
equal
deleted
inserted
replaced
20135:4c6d70a35192 | 20136:46fb763e5f3a |
---|---|
57 p, SLOT (handle_octave_ready ())); | 57 p, SLOT (handle_octave_ready ())); |
58 | 58 |
59 command_interpreter->moveToThread (main_thread); | 59 command_interpreter->moveToThread (main_thread); |
60 | 60 |
61 main_thread->start (); | 61 main_thread->start (); |
62 | |
63 // Move this link object affinity to the same thread as the | |
64 // interpreter to ensure signals/slots to the GUI are queued. | |
65 moveToThread (main_thread); | |
66 } | 62 } |
67 | 63 |
68 octave_qt_link::~octave_qt_link (void) { } | 64 octave_qt_link::~octave_qt_link (void) { } |
69 | 65 |
70 void | 66 void |