HI Ryan, On Wed, Jun 17, 2009 at 6:16 PM, Kawicki, Ryan H<[email protected]> wrote: > No crash to report but more of a behavioral problem. > > If the main thread is constructing objects while the database pager is > constructing sections of the terrain, there is the possibility for the > main thread to be blocked by the database thread. The more database > threads there are, I would assume the greater the chance any one of the > threads will be blocked. The argument here isn't that the operation is > not thread safe. The argument here is that addParent is serializing > itself across multiple threads, even when the data is unrelated.
This would only be a problem is the main thread or database thread hold on to this mutex - they just lock an object access the data and unlock the data. There are very few mutexes that hold on to a mutex for any period of time. I wouldn't expect this sharing of mutexes in this particular context to be a major issue for performance. Has there been anything that has made your think that this might be a performance issue? Robert _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

