Re: [Paraview] Multi-Threading issues

2010-06-01 Thread liuning
Hi Biddiscombe, I do a similar thing. But I use a Qt thread instead of a timer. The thread controls the entire progress. I define a iteration steps in the thread, e.g.,1024. In each iteration, the thread triggers the slot accept() method (in ParaView3/Qt/Components/pqObjectInspectorWidget), in

[Paraview] Multi-Threading issues

2010-05-31 Thread Biddiscombe, John A.
We have been developing an interface which allows us to control our simulations on the fly and have used a Qtimer in a custom panel, to query when new data is available from the server. When data is ready we when the timer is triggered and the server reports that data is ready, we do a number

Re: [Paraview] Multi-Threading issues

2010-05-31 Thread Utkarsh Ayachit
It is possible that the timer times out in middle of a progress event which happens while filters are executing. Utkarsh On Mon, May 31, 2010 at 7:32 AM, Biddiscombe, John A. biddi...@cscs.ch wrote: We have been developing an interface which allows us to control our simulations on the fly and

Re: [Paraview] Multi-Threading issues

2010-05-31 Thread Biddiscombe, John A.
Utkarsh It is possible that the timer times out in middle of a progress event which happens while filters are executing. OK. This we have detected, though what progress is going on I'm unsure about (!) - by which I mean that the only thing paraview should be doing is updating our stuff and

Re: [Paraview] Multi-Threading issues

2010-05-31 Thread Utkarsh Ayachit
Look at pqProgressManager::setProgress(). It sets InUpdate before the progress signal is fired. You can check if InUpdate is true to avoid timing out when a update is happening. InUpdate is not public, you may have to expose it. Utkarsh On Mon, May 31, 2010 at 3:06 PM, Biddiscombe, John A.