From 3e2305d815b0b7252029ad03224e406e7a8a056c Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 17 Feb 2015 19:40:58 +0000 Subject: [PATCH] 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 --- src/osg/OperationThread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osg/OperationThread.cpp b/src/osg/OperationThread.cpp index 43f252a1b..defa2ae9e 100644 --- a/src/osg/OperationThread.cpp +++ b/src/osg/OperationThread.cpp @@ -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);