Hi Steve,

On 1/3/07, Steve Webb <[EMAIL PROTECTED]> wrote:
The setText is being called from the second thread.  Is there some
semaphore that I need to call to pause the rendering thread until my
second thread is done with all of the setText()'s?

There is no thread safety in osgText for this type of usage, as with
the rest of the OSG is designed to updated during the update phase
*not* the cull and draw phases.

If we wish to do this then you'll need to carefully manage the updates
using your own mutexes.  Other select parts of the OSG do this, but
this kept very local and specific to avoid the performance penalty
associcated with protecting all ops with mutexes.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to