Hi Brad, You are trying to use the DatabasePager outside it's intended usage model so you'll be right on the bleeding edge, and likely to have to roll your sleeves up and work out how the internals work and how to add what extra features are required to achieve what you want. It may even be that the DatabasePager isn't the tool for the job. Some specific suggestions below.
On Thu, Nov 11, 2010 at 2:19 AM, Christiansen, Brad <[email protected]> wrote: > There is a setDatabasePagerThreadPause method but from my understaning of the > code this returns immiadiatley. What I need to do is wait for the the pause > to be completed before I continue. Is this functionality already available? I > cant see how to achieve what I want but the pager is a not a simple class to > understand so I may be missing something. I'm really rusty on the pause feature, I vaguely remember that I did something in this direction, but no idea if it still functions fully. The setDatabasePagerThreadPause retuning immediately didn't mean it's not functioning properly though - more likely that what you are after would require a OpenThreads::Barrier or Block that blocks calling thread till all the paging threads have joined it. The other approach you could take it to roll your own pager. If you don't need all the load balancing features then perhaps you could get away with a much simpler paging thread. The new osganalysis example has some simple paging support built into it. Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

