>Hi Richard,
>
>Could you be specific about what parts you are concerned about.
>Waving an arm roughly about in some vague direction doesn't really
>help anyone.
>
>Robert.

Hi Robert,
The DatabaseRequests store observer_ptrs to those nodes where they want
to insert the node they just loaded.

In the database pager code one will find it in 
void DatabasePager::addLoadedDataToSceneGraph(double timeStamp):

osg::ref_ptr<osg::Group> group =
databaseRequest->_groupForAddingLoadedSubgraph.get();

In this case it seem to be valid, because addLoadedDataToSceneGraph is
called by the main thread?!.

However my question is: Is there a thread safe way going from
observer_ptr to ref_ptr?

Richard.

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

Reply via email to