|
From: Daniel J S. <dan...@ie...> - 2014-02-24 04:24:55
|
On 02/23/2014 10:04 PM, Daniel J Sebald wrote:
> Add a second variable to waitforinput, say:
>
> qt_waitforinput(int options, gp_event_t* event)
>
> and the gnuplot core does something like:
>
> gp_event_t *event_request = 0;
> term->waitforinput(options,&event_request);
> if (event_request)
> do_event(event_request);
>
> That way there are no recursions...I'm assuming (hoping) that there
> isn't recursions inside of recursions.
I suppose I could do something like the above inside the Qt terminal, so
long as it is done on the gnuplot core side of things:
MAIN PROGRAM | QTHREAD
|
gnuplot core | QtTerminalInterface
QtTerminalEmitter | (active event loop)
(inactive event loop) |
|
Place do_event() here |
when other thread is |
complete |
Dan
|