Cory Riddell <c...@...> writes:

> 
> 
> Hi Alfonso,
> I'm doing something similar to what you are doing. My viewer is running
> in it's own thread. I have a shared object that I use to communicate
> between the threads. If you are looking for sample code, I can try to
> distill what I have to something relatively simple.
> I'm using the boost threads library. It seems to work quite well and is
> cross platform. Have you written multi-threaded apps before? Are you
> familiar with mutexes (mutices?), conditions, volatile variables,
> spurious wakes, etc...? 
> If you aren't familiar with the boost stuff, I would recommend spending
> some time getting familiar with it. 
> Aside: if anybody can explain why spurious wakes exist, I'd love to
> hear an explanation.
> Cory


Hi Cory,

I would appreciate very much your sample code, because I don't have much 
experience in this issue.
Did you consider using what Paul has suggested (osgDB::DatabasePager)? In my 
case the physical calculations are in fact a standalone program, and it is not 
just "loaded data"...

Thank you very much,
Alfonso


_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to