Hi Alan, On 19 August 2013 16:15, Alan Jesser <[email protected]> wrote:
> I'm just getting started with OSG and I know it uses the OpenThread > library for threading. I was wondering if anyone has explored the new C++11 > threading library as an alternative. If so how difficult would be to swap > out and would there be a benefit in doing so? > The new C++ 11 threading library has the potential for replacing OpenThreads completely, but for the OSG-3.x series we'll be sticking with OpenThreads to retain backwards compatibility. One could potentially implement a C++ 11 theading as an OpenThreads implementation that sits alongside the current pthreads/win32 threads implementations, but practically this won't provide much benefit as all C++ 11 threads currently does is provided a portable API that is implementation with platform specific threading libraries much in the same way that OpenThreads does right now. The benefit from eventually moving to C++ 11 threads would be simplifying the OSG code base via the removal of OpenThreads, but speed and functionality wise I wouldn't expect to see any difference. If I were to write a new scene graph today then I'd use C++ threads, but for the OSG as it stands there isn't yet a strong reason to port over in the near term. Robert.
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

