Hi Hans and Alan,

On Mon, 2009-01-19 at 10:19 -0800, Alan W. Irwin wrote:
> On 2009-01-19 14:41+0100 hans.rijn...@shell.com wrote:
> 
> > Dear all,
> >
> > This issue was nicely resolved for the xwin driver onn Linux, but now we 
> > face the similar behaviour on Window (Vista 64) using the wxwidgets driver.
> >
> > PlPlot was installed with the pthreads option on (pthreads library from 
> > gnu), but as soon as you enter the obscured window again, the window title 
> > shows "not responding" and hence no refresh.
> >
> > Do we forget something ?

I didn't know, that the pthreads library works on Windows. But apart
from that, the wxWidgets driver does not support multi threading at the
moment - it works completely single threaded. Although it behaves a
little like a mt app, since you can see the driver drawing the plot, but
this is since the driver continuously calls the wxWidgets main loop
routine, do some drawing and leave immediately the loop again. A plend()
call will allow the wxWidgets driver to take over and do the updating of
the screen if necessary.

If you really need multi-threading this will become a little
complicated, but if e.g. you only need the plot screen being updated if
it was hidden, etc. and no menu action and so on, it's actually possible
to use an internal function of the wxWidgets driver (wxApp::Run() I
think) on a regularly basis. In case there are some Events pending (e.g.
"Screen needs repaint") then this events will be processed and if the
application goes "idle" it returns, which would allow your application
to progress. If you manage to call the driver a number of times a second
this would be as good as a multi threaded driver.

I could have a look on how the xwin driver is doing the pthread stuff
and if not that hard I could try to implement it, but that isn't
something which I can do in the next days.

Would the way I described above be a solution for you? Btw, no driver
which works on Windows has pthread support.

> 
> I am now wondering if there is a thread issue for windows or for -dev
> wxwidgets? To help resolve that question, are you satisfied with the
> threading behaviour of -dev wxwidgets on Linux?

In Linux there is also no pthread support of the wxWidgets driver.

Regards,
Werner
> 
> Alan
> __________________________
> Alan W. Irwin
> 
> Astronomical research affiliation with Department of Physics and Astronomy,
> University of Victoria (astrowww.phys.uvic.ca).
> 
> Programming affiliations with the FreeEOS equation-of-state implementation
> for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
> package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
> Linux Links project (loll.sf.net); and the Linux Brochure Project
> (lbproject.sf.net).
> __________________________
> 
> Linux-powered Science
> __________________________
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> Plplot-general mailing list
> Plplot-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/plplot-general
-- 
Dr. Werner Smekal
Institut fuer Allgemeine Physik
Technische Universitaet Wien
Wiedner Hauptstr 8-10
A-1040 Wien
Austria

email: sme...@iap.tuwien.ac.at
web:   http://www.iap.tuwien.ac.at/~smekal
phone: +43-(0)1-58801-13463 (office)
       +43-(0)1-58801-13469 (laboratory)
fax:   +43-(0)1-58801-13499


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Plplot-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to