Hi Antonio,

On Fri, 2005-10-28 at 14:57 +0200, antonio_lioy wrote:
> I have a problem using thread with cluster. In my application there
> are two threads, one main thread which display the scene graph and the
> second thread which modify the nodes of scenegraph.
> As written in opengl documentation I've insert in the display function
> the code to update the change list of main thread, in this way:
>      appThread->getChangeList()->applyAndClear()
> 
> But nothing change... I debugged my application and I discover that
> the second thread changes the nodes, but main thread doesn't "see"
> this modification.
> 
> I also tryed to use this code:
>   Thread::getCurrentChangeList()->merge(*appThread->getChangeList());
> 
> But without any right result....
> 
> Can u help me? Someone is using thread with a multidisplay window  
> and has solved my problem?

The main problem is that applyAndClear() is not transitive, i.e. changes
that are applied are not added into the thread's ChangeList. AFAIR we
used to have an option for that, but I can't find it right now.

Thus you have to do both the things you mention: you need to merge the
changes into the current CL (so that they are transfered to the cluster
nodes), and applyAndClear() them to get the new data over into the right
aspect.

Hope it helps

        Dirk




-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to