Sorry, sent too early. Anyway, OSG has a potential solution to this -
ref ptrs. If you pass and hold ref ptrs, then you will have two
objects pointing to the same thing. Specifically, you would pass a
pointer to your ref ptr.
Having said that, I'm new to OSG - there's probably a better way.
Please also consider thread safety - what would happen if your main
thread tries to access the node while it's being created? What are you
trying to do?
Bruce
On Feb 14, 2010, at 14:28, Bruce Wheaton <[email protected]> wrote:
On Feb 14, 2010, at 14:15, "Danny Lesnik" <[email protected]>
wrote:
The value of node is null. I'm a newbie in Threading Programming,
but I need to find a way to work it out.
Your problem lies in C, Danny, not in threading. You passed a
pointer into your thread class by value. Your thread class
initialized a pointer member with that value. There is absolutely no
link between those two except, at the start, they have the same
value (0).
could anybody help?
Thank you!
Cheers,
Danny
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=24146#24146
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org