Glenn Waldron
2018-07-31 14:53:47 UTC
Robert,
I would like to make you aware of two thread-safety issues in osgText:
Font::getGlyph() is thread-safe, but it returns a shared Glyph object that
also needs protection. Glyph::getOrCreateTextureInfo, getTextureInfo, and
setTextureInfo can fail when creating Text objects from different threads.
Font::getCachedStateSets() returns a container that can be modified by the
Text::createStateSet() method. This container also needs mutex protection.
Glenn Waldron
I would like to make you aware of two thread-safety issues in osgText:
Font::getGlyph() is thread-safe, but it returns a shared Glyph object that
also needs protection. Glyph::getOrCreateTextureInfo, getTextureInfo, and
setTextureInfo can fail when creating Text objects from different threads.
Font::getCachedStateSets() returns a container that can be modified by the
Text::createStateSet() method. This container also needs mutex protection.
Glenn Waldron