Hi Rabbi,

osg itself doesnt do that. You have to do it yourself .....

Nick

http://www.linkedin.com/in/tnick


On Mon, Feb 1, 2010 at 6:36 AM, Rabbi Robinson <[email protected]> wrote:

> Hi,
>
> I have a multithread application which might update an node (add/remove
> children etc) at the same time. Is there any locking mechanism for ensuring
> only one thread is in a critical session at any time.
>
> I look at the source code of Group which just use std::vector for children
> list. As far as I know, std::vector is not safe for multiple write.
>
> I also noticed there is a mutex for reference count, which does not
> protected the object itself.
>
> Thank you!
>
> Cheers,
> Rabbi
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=23462#23462
>
>
>
>
>
> _______________________________________________
> 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

Reply via email to