Hi Sajjadul,

There isn't any general signleton template or base class in the OSG, but
it's doesn't take much code to implement so when we use singleton's they
tend to get implemented locally in the code via a static access method.
Getting singleton's to work cross platform with thread safety on
initialization can be a bit tricky though so sometimes you have to jump
through hoops to get it to work in all instances.

Robert.


On 26 April 2013 09:53, Sajjadul Islam <[email protected]> wrote:

> Hello forum,
>
> I have a class declaration and i want to create a singleton instance to it.
>
> Is there any utility class inside OSG that enables something like this?
>
> Thank you!
>
> Cheers,
> Sajjadul
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=53820#53820
>
>
>
>
>
> _______________________________________________
> 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