Thanks Matthew, fix now merged and submitted to svn/trunk.  Cheers, Robert.

On Wed, Jan 19, 2011 at 10:15 PM, Matthew Johnson-Roberson
<[email protected]> wrote:
> Small fix for operation thread to protect the access to _operations vector by 
> functions getNumOperationsInQueue() and empty(). It is simply an addition of  
>  OpenThreads::ScopedLock<OpenThreads::Mutex> lock(_operationsMutex);
> to protect against accessing while writing which was segfaulting in VPB
> specifically in void ThreadPool::run(osg::Operation* op)
> in the waiting loop
>
> while (_operationQueue->getNumOperationsInQueue() >= 
> _maxNumberOfOperationsInQueue)
>
> The complete files are attached and changes were made against the svn r12097 
> (most recent version at of today)
>
> Cheers,
> -matt
>
>
>
>
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to