gnucap-devel
[Top][All Lists]
Advanced

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

Re: [Gnucap-devel] gplot (was: wave storage)


From: Abhinav singh
Subject: Re: [Gnucap-devel] gplot (was: wave storage)
Date: Sun, 5 Oct 2014 14:56:42 +0000

Hey Felix,

On Sat, Oct 4, 2014 at 10:50 PM, Felix Salfelder <address@hidden> wrote:
> Hi Abhinav
>
> On Sun, Oct 05, 2014 at 03:46:51AM +0530, Abhinav singh wrote:
>> The frozen command prompt indicates that WIN_MAIN::_is_proceed flag
>> doesn't getting reset but it should get reset as soon as we click on
>> New button.
>
> this does not happen. the "new" button does not have any effect.
> my guess is, that you actually want to declare it volatile.
>
> if i do this, the line _is_proceed=true; in WIN_MAIN::WIN_MAIN breaks
> the loop in do_it, and clicking on new is not required. (anyway, you
> should use conditionals, c.f. the pthreads documentation,
> pthread_cond_*).
>
Along with breaking the loop click on New button serve one more
purpose. It invokes the append_page() function and if you are going to
change this then you have to think how to invoke this function.

> i have triple checked. i'm on the 'gui-more' branch which is on top of
> AbhinavSing-WIP. it mostly fixes the build and the paths to the .glade
> files (can you please merge this?). i'm pretty sure i didnt touch
> anything relevant.
>
> my test input is as simple as
> """
> load ./plot.so
> build
> V1 1 0 sin amplitude=1
>
> store tran v(nodes)
> tran 0 1 1 trace=a
> gplot tran v(1)
> """
>
There is no frozen window problem here both windows (i.e. analyzer and
gnucap main terminal) are active. Just once run the code from
AbhinavSingh-WIP without any modification if it works then we will go
on one by one with the changes you had made after that(may be
helpful).

> (i get a plot window with one "tran" tab and a correct plot) the prompt
> is frozen, but i think i know why. i am most interested in why the left
> part of the plot window remains empty, and if this is intended. i could
> not find anything in the code that looks related.
>
Actually i post ponded some works to do in my inter-semester break
which includes this left pane thing and a command shell.

On Sun, Oct 5, 2014 at 11:53 AM, Felix Salfelder <address@hidden> wrote:

> On Sat, Oct 04, 2014 at 10:46:40PM +0200, Felix Salfelder wrote:
>> multiple windows require multiple threads. but gtk takes care of this.
>> i think it's best to start just one pthread. but i'm not sure whether
>> multiple windows make sense already -- maybe i want a command window or
>> something like it later on.
>
command window?Elaborate please.

> i have implemented a simple example of how (i think) gnucap should
> communicate with the gui thread. please checkout the "gui-thread" branch
> and have a look. it is not fully complete, but it should be pretty
> obvious.
>
Ya sure, but need little time.

Thanks,
Abhinav



reply via email to

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