Robert Osfield
dd996a3289
Introduced CMake option OSG_PROVIDE_READFILE option that defaults to ON, but when switched to OFF disables the building of the osgDB::read*File() methods,
...
forcing users to use osgDB::readRef*File() methods. The later is preferable as it closes a potential threading bug when using paging databases in conjunction
with the osgDB::Registry Object Cache. This threading bug occurs when one thread gets an object from the Cache via an osgDB::read*File() call where only
a pointer to the object is passed back, so taking a reference to the object is delayed till it gets reassigned to a ref_ptr<>, but at the same time another
thread calls a flush of the Object Cache deleting this object as it's referenceCount is now zero. Using osgDB::readREf*File() makes sure the a ref_ptr<> is
passed back and the referenceCount never goes to zero.
To ensure the OSG builds when OSG_PROVIDE_READFILE is to OFF the many cases of osgDB::read*File() usage had to be replaced with a ref_ptr<> osgDB::readRef*File()
usage. The avoid this change causing lots of other client code to be rewritten to handle the use of ref_ptr<> in place of C pointer I introduced a serious of
templte methods in various class to adapt ref_ptr<> to the underly C pointer to be passed to old OSG API's, example of this is found in include/osg/Group:
bool addChild(Node* child); // old method which can only be used with a Node*
tempalte<class T> bool addChild(const osg::ref_ptr<T>& child) { return addChild(child.get()); } // adapter template method
These changes together cover 149 modified files, so it's a large submission. This extent of changes are warrent to make use of the Object Cache
and multi-threaded loaded more robust.
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@15164 16af8721-9629-0410-8352-f15c8da7e697
2015-10-22 13:42:19 +00:00
..
2015-07-22 14:03:24 +00:00
2014-06-05 16:26:13 +00:00
2012-12-05 10:13:51 +00:00
2012-03-21 17:36:20 +00:00
2015-04-07 18:01:12 +00:00
2013-06-26 12:59:40 +00:00
2013-10-10 14:45:57 +00:00
2010-11-05 17:24:50 +00:00
2015-04-13 10:43:56 +00:00
2014-12-09 10:37:09 +00:00
2014-12-09 10:37:09 +00:00
2014-12-02 17:12:56 +00:00
2014-12-04 19:03:16 +00:00
2014-12-02 17:12:56 +00:00
2014-04-07 15:04:34 +00:00
2015-09-25 15:20:25 +00:00
2015-07-21 13:42:35 +00:00
2012-03-21 17:36:20 +00:00
2015-04-13 10:43:56 +00:00
2015-09-23 09:47:34 +00:00
2015-04-13 10:43:56 +00:00
2015-06-02 09:33:22 +00:00
2015-09-24 10:52:35 +00:00
2012-03-21 17:36:20 +00:00
2014-12-09 10:37:09 +00:00
2014-12-09 14:57:25 +00:00
2012-03-21 17:36:20 +00:00
2015-06-30 09:11:00 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2014-06-28 06:22:47 +00:00
2013-10-10 14:45:57 +00:00
2012-03-21 17:36:20 +00:00
2014-12-09 14:57:25 +00:00
2012-03-21 17:36:20 +00:00
2014-07-28 16:19:44 +00:00
2015-09-23 10:41:54 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2015-06-02 09:33:22 +00:00
2012-03-21 17:36:20 +00:00
2015-04-07 18:01:12 +00:00
2015-04-07 18:01:12 +00:00
2013-01-28 14:30:21 +00:00
2012-03-29 15:08:15 +00:00
2012-03-21 17:36:20 +00:00
2015-04-07 18:01:12 +00:00
2015-10-22 13:42:19 +00:00
2014-05-14 10:19:43 +00:00
2012-12-07 19:04:49 +00:00
2013-07-01 08:21:13 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2015-09-23 09:47:34 +00:00
2015-09-23 09:47:34 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2015-10-22 13:42:19 +00:00
2015-06-01 13:40:20 +00:00
2014-12-10 10:44:58 +00:00
2012-09-20 11:18:19 +00:00
2015-07-22 14:03:24 +00:00
2015-06-30 09:11:00 +00:00
2015-09-23 09:47:34 +00:00
2015-04-07 18:01:12 +00:00
2015-06-01 13:11:49 +00:00
2011-05-12 18:40:18 +00:00
2015-07-23 15:46:47 +00:00
2015-10-22 13:42:19 +00:00
2012-03-21 17:36:20 +00:00
2015-10-22 13:42:19 +00:00
2015-10-22 13:42:19 +00:00
2013-06-28 12:00:43 +00:00
2015-06-01 13:40:20 +00:00
2013-11-06 09:23:21 +00:00
2014-06-26 14:16:11 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2015-04-27 19:31:13 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2015-10-22 13:42:19 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2014-06-25 08:21:13 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2014-12-09 14:57:25 +00:00
2015-10-22 13:42:19 +00:00
2014-06-05 16:26:13 +00:00
2014-06-05 16:26:13 +00:00
2015-10-22 13:42:19 +00:00
2012-03-21 17:36:20 +00:00
2015-10-22 13:42:19 +00:00
2012-03-29 15:08:15 +00:00
2015-06-01 13:40:20 +00:00
2010-05-14 12:24:13 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2015-09-04 14:24:11 +00:00
2015-10-22 13:42:19 +00:00
2014-12-10 10:38:12 +00:00
2014-06-02 16:20:39 +00:00
2014-12-09 14:57:25 +00:00
2014-12-09 14:57:25 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2014-06-02 16:20:39 +00:00
2012-03-21 17:36:20 +00:00
2014-12-09 14:58:34 +00:00
2015-02-10 17:04:02 +00:00
2015-10-22 13:42:19 +00:00
2012-03-21 17:36:20 +00:00
2015-10-22 13:42:19 +00:00
2012-03-21 17:36:20 +00:00
2015-06-01 13:40:20 +00:00
2012-03-21 17:36:20 +00:00
2013-08-01 07:19:45 +00:00
2014-12-07 17:31:49 +00:00
2012-03-21 17:36:20 +00:00
2015-04-13 10:43:56 +00:00
2015-10-22 13:42:19 +00:00
2012-03-21 17:36:20 +00:00
2015-09-23 09:47:34 +00:00
2012-03-21 17:36:20 +00:00
2013-10-21 16:35:12 +00:00
2012-03-21 17:36:20 +00:00
2015-10-22 13:42:19 +00:00
2015-10-22 13:42:19 +00:00
2015-09-23 09:47:34 +00:00
2015-06-30 09:11:00 +00:00
2014-06-05 16:26:13 +00:00
2015-10-22 13:42:19 +00:00
2012-03-21 17:36:20 +00:00
2014-12-09 14:57:25 +00:00
2014-12-09 11:14:33 +00:00
2015-10-22 13:42:19 +00:00
2015-01-12 10:30:50 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2015-10-22 13:42:19 +00:00
2015-10-22 13:42:19 +00:00
2015-10-22 13:42:19 +00:00
2015-10-22 13:42:19 +00:00
2015-10-22 13:42:19 +00:00
2015-10-22 13:42:19 +00:00
2015-01-06 17:23:26 +00:00
2015-10-22 13:42:19 +00:00
2015-10-22 13:42:19 +00:00
2015-06-01 13:11:49 +00:00
2015-06-01 13:40:20 +00:00
2012-03-21 17:36:20 +00:00
2015-01-12 10:30:50 +00:00
2012-03-21 17:36:20 +00:00
2014-12-16 09:34:15 +00:00
2015-08-10 05:04:56 +00:00
2015-06-09 10:49:34 +00:00
2015-10-22 13:42:19 +00:00
2015-04-13 10:43:56 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2015-06-26 09:40:37 +00:00
2013-06-03 11:38:20 +00:00
2012-03-21 17:36:20 +00:00
2013-06-27 17:37:03 +00:00
2013-06-03 11:38:20 +00:00
2013-06-27 17:37:03 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2013-06-03 11:38:20 +00:00
2012-03-21 17:36:20 +00:00
2013-06-27 17:37:03 +00:00
2013-06-03 11:38:20 +00:00
2013-06-27 17:37:03 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2013-06-03 11:38:20 +00:00
2012-03-21 17:36:20 +00:00
2012-03-21 17:36:20 +00:00
2013-06-03 11:38:20 +00:00
2013-06-27 17:37:03 +00:00
2014-11-24 14:54:39 +00:00
2015-09-23 09:47:34 +00:00
2015-04-07 18:01:12 +00:00
2013-04-15 14:21:32 +00:00