[osg-users] osgText: two thread-safety issues

Glenn Waldron gwaldron at gmail.com
Tue Jul 31 07:53:47 PDT 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20180731/4d51d9da/attachment.html>


More information about the osg-users mailing list