Hi Jorge,

I've been thinking about the static initialization problem and how we
might keep all the usage models/platforms happy.  My current favored
approach would be to keep the static variables local to the static
singleton function (like how the Uniform.cpp code was) and have a
static proxy object in the global scope that invokes the singleton
function.  This static proxy object would be there simply to avoid
issues with multi-threaded usage and potentially could be optionally
compiled in.

I don't know specifically what the problem is under Android yet so
can't say whether this will actually fix the issue.

Robert.
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to