Added mutex into osgText::Font::GlphTexture to marshel adding to and reading

from glyph list
This commit is contained in:
Robert Osfield
2007-09-04 12:32:47 +00:00
parent efc7ff6b02
commit c9f6a3f7ca
2 changed files with 12 additions and 3 deletions

View File

@@ -270,6 +270,7 @@ public:
virtual ~GlyphTexture();
// parameter used to compute the size and position of empty space
// in the texture which could accomodate new glyphs.
int _margin;
@@ -282,8 +283,10 @@ public:
typedef std::vector< const Glyph* > GlyphPtrList;
typedef osg::buffered_object< GlyphPtrList > GlyphBuffer;
GlyphRefList _glyphs;
mutable GlyphBuffer _glyphsToSubload;
GlyphRefList _glyphs;
mutable GlyphBuffer _glyphsToSubload;
mutable OpenThreads::Mutex _mutex;
};