Hi Rico, Doing LOS calculations should be fine to multi-thread.
Robert. On 3 December 2014 at 09:47, Rico Widmer <[email protected]> wrote: > Thank you for your response. > > The scene is only used for calculating LOS. The function providing this > can be called by multiple threads though. At the moment I lock the access > to the scene: > > > Code: > > osgSim::LineOfSight los; > los.addLOS(start, end); > > // It is unknown whether OSG changes m_scene during the computation. > // To be sure its access is locked. > m_lock.enter(); > los.computeIntersections(m_scene); > m_lock.exit(); > > > > > Is the locking procedure around computeIntersections necessary? The rest > of my code does not change m_scene.[/code] > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=61958#61958 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

