Hi Serge,

The key to understanding is looking a the signature of the methods -
one is static method and one is a normal member.  The static method,
static void setThreadSafeReferenceCounting(bool), sets the default
value, the non static, virtual void setThreadSafeRefUnref(bool
threadSafe), assigns the setting of a particular object.

Robert.

On Dec 11, 2007 9:16 AM, Serge Lages <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I was wondering what's the difference between setThreadSafeReferenceCounting
> and setThreadSafeRefUnref into osg::Referenced ? Reference counting is
> something different than ref() and unref() an object ?
>
> And what is the best way to make sure my objects' ref() and unref() are
> thread safes ? setThreadSafeReferenceCounting or setThreadSafeRefUnref ?
> Thanks !
>
> --
> Serge Lages
>  http://www.tharsis-software.com
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to