[osg-users] Wait for Database pager to complete

Bruno Oliveira bruno.manata.oliveira at gmail.com
Sun Jul 9 14:18:30 PDT 2017


I am using ref_ptrs on the rendering part. However, my backend is not.

2017-07-07 16:23 GMT+01:00 Robert Osfield <robert.osfield at gmail.com>:

> HI Bruno,
>
> Make sure you are using ref_ptr<> in your ReadFileCallback for any
> scene graph data structures so if you remove nodes from the main scene
> graph they don't get deleted mid load.  If you do this properly then
> there should be no need to mess around with blocks that would
> complicate the code.
>
> Robert.
>
> On 7 July 2017 at 14:46, Bruno Oliveira <bruno.manata.oliveira at gmail.com>
> wrote:
> > Hello,
> >
> > i have a PagedLOD bases scene.
> >
> > At some point I remove a node, but OSG sometimes is reading a subnode and
> > crashes at ReadFileCallback.
> >
> > I can solve this if there is some mechanism to wait for the current
> callback
> > to finish reading, like for instance a
> > osgDB::DataBasePager::waitForCurrentThreadToFinish() function.
> >
> > Is there something like this?
> >
> > _______________________________________________
> > osg-users mailing list
> > osg-users at lists.openscenegraph.org
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-
> openscenegraph.org
> >
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170709/7681eced/attachment-0001.htm>


More information about the osg-users mailing list