I am just starting to use the new trunk code for OpenSG.  It looks
like a lot has changed and there are now a *lot* more pointer types
(5??).  I am trying to figure out what I should be using and running
into some issues.

>From the documentation here:
http://opensg.vrsource.org/trac/wiki/Tutorial/OpenSG2/Basics

It sounds like RecPtr holds a referenced counted pointer, but that it
only works in a single aspect and that to use a pointer that can be
used in multiple aspects you would have to use MTRecPtr.  Is that
correct?

For example if I had code with the following threads:

- Main: Traversal, rendering
- DB: Load items in the background, sync into main thread periodically
- Work: Background thread to do work on nodes that came from the main thread

Then would I need to use MTRecPtr?

By the same token, what ptr corresponds to the old RefPtr?  (it looks
like it would be MTRecPtr)

Also, are the old XxxxNodePtr's still around and which type of ptr
(MTRecPtr/RecPtr) do they use to hold their data? (ie. are they thread
safe).

This has some pretty large implications for pyopensg and our codebase,
because at the user level we always want to use the safest pointer
type that can be used in multiple threads. (ie. like the old RefPtr).

Anyway, please help a confused developer. :)

-Allen

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to