On Dec 12, 2007 12:05 AM, Ulrich Hertlein <[EMAIL PROTECTED]> wrote: > What might confuse people is that calling: > > osg::Referenced* r = new osg::Referenced; > r->setThreadSafeReferenceCounting(true); // static version > r->setThreadSafeRefUnref(true); // instance version > > do two separate things. The first only sets the default but doesn't enable it > for the object (which it can't do because it's a static function, just called > in an unorthodox way). The second actually enables thread-safety for the > object. > > Maybe by renaming the static 'setThreadSafeReferenceCounting' to something > like > 'setGlobalThreadSafeRefUnref' it becomes a little bit clearer?
Possibly a bit clearer, but still open to misleading people, as it doesn't run through osg::Referenced objects in memory and change them, it only changes the default setting for newly created osg::Referenced objects. There is the pesky issue of backwards compatibility too. Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

