octave-maintainers
[Top][All Lists]
Advanced

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

Re: Connecting Octave to the GUI


From: Daniel J Sebald
Subject: Re: Connecting Octave to the GUI
Date: Mon, 08 Apr 2013 16:48:41 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16

On 04/08/2013 04:39 PM, John W. Eaton wrote:
On 04/08/2013 05:30 PM, Michael Goffioul wrote:
On Mon, Apr 8, 2013 at 4:25 PM, John W. Eaton <address@hidden
<mailto:address@hidden>> wrote:

On 04/08/2013 04:15 PM, Daniel J Sebald wrote:

emit octave_command_complete (QObject *requester, QString& command,
octave_value_list& result);


Aren't there problems with reference counting if you pass things
like an octave_value_list object from the Octave interpreter thread
to the GUI thread?


The atomic refcount I implemented a while back is supposed to be
thread-safe. I've been using it to pass octave objects between octave
and QtHandles and it seemed stable.

Yeah, but slow, as I recall. :-(

Can't one pass by reference after using:

  qRegisterMetaType<octave_value_list> ("octave_value_list");

?

Dan


reply via email to

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