From Stephan Wenglorz, "the attached fix corrects a small bug in OperationThread::setDone(bool), calling it had the opposite effect of what was intended, i.e. setting done to false actually finished the thread. The effect was that VPB threads would exit before starting osgdem when a task had been enqueued, because they initially set done to false."
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14699 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
@@ -293,7 +293,7 @@ void OperationThread::setOperationQueue(OperationQueue* opq)
|
||||
|
||||
void OperationThread::setDone(bool done)
|
||||
{
|
||||
unsigned d = done?0:1;
|
||||
unsigned d = done?1:0;
|
||||
if (_done==d) return;
|
||||
|
||||
_done.exchange(d);
|
||||
|
||||
Reference in New Issue
Block a user