Made ReaderWriter and ReaderWriter::Options use thread safe ref counting.

This commit is contained in:
Robert Osfield
2007-09-24 09:05:42 +00:00
parent 54c579fcae
commit cf2c9da74d

View File

@@ -37,7 +37,9 @@ class OSGDB_EXPORT ReaderWriter : public osg::Object
public:
ReaderWriter() {}
ReaderWriter():
osg::Object(true) {}
ReaderWriter(const ReaderWriter& rw,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY):
osg::Object(rw,copyop) {}
@@ -82,8 +84,13 @@ class OSGDB_EXPORT ReaderWriter : public osg::Object
};
Options():_objectCacheHint(CACHE_ARCHIVES) {}
Options(const std::string& str):_str(str), _objectCacheHint(CACHE_ARCHIVES) {}
Options():
osg::Object(true),
_objectCacheHint(CACHE_ARCHIVES) {}
Options(const std::string& str):
osg::Object(true),
_str(str),
_objectCacheHint(CACHE_ARCHIVES) {}
Options(const Options& options,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY):
osg::Object(options,copyop),