Replaced use of while(isRunning()) { YieldCurrentThread(); } style loops with use of join() to avoid false positives being reported by valgrind when using the helgrind tool for thread debugging.
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14460 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
@@ -201,7 +201,7 @@ class OSG_EXPORT OperationThread : public Referenced, public OpenThreads::Thread
|
||||
|
||||
void setDone(bool done);
|
||||
|
||||
bool getDone() const { return _done; }
|
||||
bool getDone() const { return _done!=0; }
|
||||
|
||||
/** Cancel this graphics thread.*/
|
||||
virtual int cancel();
|
||||
@@ -212,7 +212,7 @@ class OSG_EXPORT OperationThread : public Referenced, public OpenThreads::Thread
|
||||
|
||||
observer_ptr<Object> _parent;
|
||||
|
||||
bool _done;
|
||||
OpenThreads::Atomic _done;
|
||||
|
||||
OpenThreads::Mutex _threadMutex;
|
||||
osg::ref_ptr<OperationQueue> _operationQueue;
|
||||
|
||||
Reference in New Issue
Block a user