octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #44751] Failure to exit when running Octave in


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #44751] Failure to exit when running Octave in --no-gui mode
Date: Fri, 10 Apr 2015 04:41:06 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 SeaMonkey/2.15

Follow-up Comment #30, bug #44751 (project octave):

Here is another diff file for you to try.  All I've added over the previous
diff is a


  // Move this link object in the same thread as the interpreter.
  moveToThread (main_thread);


[Note: "main_thread" here does not mean the main program thread.  A better
name might have been "interpreter_thread".]

This is meant to test the theory that signals are direct rather than queued
because the Qt link is constructed under the main program thread.

The main_window needs to be in the main program thread, and that is
constructed in octave-gui.cc.  The interpreter is in a worker thread created
by the Qt link.  However, in the repository the Qt link is constructed by
main_window (main thread).  In the patch here:

https://savannah.gnu.org/bugs/download.php?file_id=33550

the Qt link is constructed prior to the main_window, but that still is
instantiated by the main thread in octave-gui.cc.

So, let's see if it is possible to explicitly move the Qt link to the other
thread and thereby make the signals it emits queued.

(file #33625)
    _______________________________________________________

Additional Item Attachment:

File name: move_qtlink_thread-2015apr09.diff Size:2 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?44751>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]