Fixed hang using a ReentrantMutex

This commit is contained in:
Robert Osfield 2018-09-11 11:23:34 +01:00
parent b94c797ed6
commit c4819427fa

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