Subject says it all: shouldn't the done flag be volatile? If it isn't, how can you be certain that the viewer thread will ever notice it has changed from false to true?
Some context here: I call ViewerBase::run() in its own thread. To shut it down, I call viewerBase->setDone(true) from my main thread. Cory _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org