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:
Robert Osfield
2015-02-17 19:40:58 +00:00
parent 8546e911fc
commit 3e2305d815

View File

@@ -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);