octave-maintainers
[Top][All Lists]
Advanced

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

Re: Passing variables up to the GUI


From: John W. Eaton
Subject: Re: Passing variables up to the GUI
Date: Fri, 12 Apr 2013 23:37:58 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.11) Gecko/20121122 Icedove/10.0.11

On 04/12/2013 11:32 PM, Daniel J Sebald wrote:
On 04/12/2013 10:14 PM, Daniel J Sebald wrote:

On the GUI side and interface, there is a bit more work. I suppose there
would need to be two queues, maybe one for the user input commands, and
one for the "callback" commands. The GUI needs to queue up the command
and also what object wants the data. The object that wants the data has
to know what it asked for and how to interpret it. Maybe it asks for
"x". Or maybe it asks for "size(x)". Or maybe "x(1:10,21:30)".

Followup thought. Maybe the thing to do is instead of attempting the
"corefeval" function first, is to just create some octave_value object
on the core side, say a small matrix, and see if that can be sent over
by reference using

emit octave_result (qobject, ovres);

to some hunk of code on the GUI side that will just toss up a dialog
showing the contents of the object.

I predict crashes because of reference counting operations that are not thread safe.

jwe



reply via email to

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