Fixed hang using a ReentrantMutex

This commit is contained in:
Robert Osfield 2018-09-11 11:23:34 +01:00
parent 4ea833cc6b
commit 2e14bd52bf

View File

@ -28,7 +28,7 @@
#include <osgText/KerningType>
#include <osgText/Style>
#include <OpenThreads/Mutex>
#include <OpenThreads/ReentrantMutex>
namespace osgText {
@ -127,7 +127,7 @@ protected:
typedef std::vector< osg::ref_ptr<TextureInfo> > TextureInfoList;
TextureInfoList _textureInfoList;
mutable OpenThreads::Mutex _textureInfoListMutex;
mutable OpenThreads::ReentrantMutex _textureInfoListMutex;
};
class OSGTEXT_EXPORT GlyphGeometry : public osg::Referenced