[osg-users] setNumChildrenRequiringUpdateTraversal

Glenn Waldron gwaldron at gmail.com
Wed Nov 18 07:20:41 PST 2009

On Wed, Nov 18, 2009 at 4:31 AM, Robert Osfield <robert.osfield at gmail.com>wrote:

> Hi Glenn,
> On Wed, Nov 18, 2009 at 2:46 AM, Glenn Waldron <gwaldron at gmail.com> wrote:
> > Is it legal to call setNumChildrenRequiringUpdateTraversal() during the
> > traversal?
> I certainly isn't something I would do, but you will probably get away
> with it in you have single threaded cull.

Well if *you* wouldn't do it, then that's good enough for me! My library
needs to support all threading models. Moving the operation to the update
trav seems to do the trick in this case.

> As for legality, there depends upon you local laws, here in the UK we
> have some pretty obscure ones dating back hundreds of years which make
> no sense today, but even then I don't think this particular type of
> coding is illegal.  Oo perhaps is someone has patented then it might
> be....

As soon as my patent filing for "update traversals" is granted, I will be
back to ask for "donations".

> > I ask because I'm getting a very hard-to-replicate crash in that method
> and
> > I'm trying to eliminate possibilities.
> You have my sympathy, I've spent many hours in my career banging my
> head off the way when trying to track down such bugs.  I don't have
> much wisdom to help other than perseverance and that both methodical
> and lateral thinking are useful for getting you through such pits of
> codiing despair :-)

Indeed ... although on the bright side this had given me the opportunity to
delve deep into some of the guts of OSG that I've never really looked at
before. So it's not all bad :)

> Good luck,
> Robert.
> _______________________________________________
> 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/20091118/dd27bd9c/attachment.htm>

More information about the osg-users mailing list