[osg-users] Wait for Database pager to complete
Robert Osfield
robert.osfield at gmail.com
Fri Jul 7 08:23:56 PDT 2017
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
>
More information about the osg-users
mailing list