Changeset 6267
- Timestamp:
- 02/23/07 17:31:34
- Files:
-
- OpenSceneGraph/trunk/VisualStudio/osgDB/osgDB.dsp (modified) (2 diffs)
- OpenSceneGraph/trunk/VisualStudio/osgWrappers/osgDB/wrapper_osgDB.dsp (modified) (1 diff)
- OpenSceneGraph/trunk/Xcode/OpenSceneGraph/OpenSceneGraph.xcodeproj/project.pbxproj (modified) (6 diffs)
- OpenSceneGraph/trunk/examples/osgphotoalbum/ImageReaderWriter.h (modified) (2 diffs)
- OpenSceneGraph/trunk/include/osg/GraphicsContext (modified) (2 diffs)
- OpenSceneGraph/trunk/include/osg/GraphicsThread (modified) (4 diffs)
- OpenSceneGraph/trunk/include/osgDB/DatabasePager (modified) (3 diffs)
- OpenSceneGraph/trunk/include/osgDB/ReentrantMutex (deleted)
- OpenSceneGraph/trunk/include/osgParticle/ParticleSystem (modified) (3 diffs)
- OpenSceneGraph/trunk/src/osg/GraphicsContext.cpp (modified) (2 diffs)
- OpenSceneGraph/trunk/src/osg/GraphicsThread.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgDB/DatabasePager.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgDB/GNUmakefile (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgParticle/ConnectedParticleSystem.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgParticle/ParticleProcessor.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgParticle/ParticleSystem.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgParticle/ParticleSystemUpdater.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/ReaderWriterFLT.cpp (modified) (3 diffs)
- OpenSceneGraph/trunk/src/osgPlugins/dae/ReaderWriterDAE.cpp (modified) (3 diffs)
- OpenSceneGraph/trunk/src/osgPlugins/flt/ReaderWriterFLT.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgPlugins/flt/ReaderWriterFLT.h (modified) (2 diffs)
- OpenSceneGraph/trunk/src/osgPlugins/gdal/ReaderWriterGDAL.cpp (modified) (4 diffs)
- OpenSceneGraph/trunk/src/osgPlugins/osga/OSGA_Archive.h (modified) (2 diffs)
- OpenSceneGraph/trunk/src/osgPlugins/txp/ReaderWriterTXP.h (modified) (3 diffs)
- OpenSceneGraph/trunk/src/osgWrappers/osg/GraphicsContext.cpp (modified) (2 diffs)
- OpenSceneGraph/trunk/src/osgWrappers/osg/GraphicsThread.cpp (modified) (3 diffs)
- OpenSceneGraph/trunk/src/osgWrappers/osgDB/DatabasePager.cpp (modified) (2 diffs)
- OpenSceneGraph/trunk/src/osgWrappers/osgDB/GNUmakefile (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgWrappers/osgDB/ReentrantMutex.cpp (deleted)
- OpenSceneGraph/trunk/src/osgWrappers/osgParticle/ParticleSystem.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
OpenSceneGraph/trunk/VisualStudio/osgDB/osgDB.dsp
r5501 r6267 216 216 # Begin Source File 217 217 218 SOURCE=..\..\Src\osgDB\ReentrantMutex.cpp219 # End Source File220 # Begin Source File221 222 218 SOURCE=..\..\src\osgDB\SharedStateManager.cpp 223 219 # End Source File … … 301 297 302 298 SOURCE=..\..\Include\osgDB\Registry 303 # End Source File304 # Begin Source File305 306 SOURCE=..\..\Include\osgDB\ReentrantMutex307 299 # End Source File 308 300 # Begin Source File OpenSceneGraph/trunk/VisualStudio/osgWrappers/osgDB/wrapper_osgDB.dsp
r6227 r6267 149 149 150 150 # Begin Source File 151 SOURCE=..\..\..\src\osgWrappers\osgDB\ReentrantMutex.cpp152 # End Source File153 154 # Begin Source File155 151 SOURCE=..\..\..\src\osgWrappers\osgDB\Registry.cpp 156 152 # End Source File OpenSceneGraph/trunk/Xcode/OpenSceneGraph/OpenSceneGraph.xcodeproj/project.pbxproj
r6214 r6267 1911 1911 00E2813E07676504005AEE61 /* TexEnvFilter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 00E2813B07676503005AEE61 /* TexEnvFilter.cpp */; }; 1912 1912 00E2814107676629005AEE61 /* Archive in Headers */ = {isa = PBXBuildFile; fileRef = 00E2813F07676626005AEE61 /* Archive */; settings = {ATTRIBUTES = (Public, ); }; }; 1913 00E2814207676629005AEE61 /* ReentrantMutex in Headers */ = {isa = PBXBuildFile; fileRef = 00E2814007676628005AEE61 /* ReentrantMutex */; settings = {ATTRIBUTES = (Public, ); }; };1914 1913 00E28145076766DA005AEE61 /* Archive.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 00E28143076766D7005AEE61 /* Archive.cpp */; }; 1915 00E28146076766DA005AEE61 /* ReentrantMutex.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 00E28144076766D9005AEE61 /* ReentrantMutex.cpp */; };1916 1914 00E28148076767D2005AEE61 /* NodeTrackerManipulator in Headers */ = {isa = PBXBuildFile; fileRef = 00E28147076767D1005AEE61 /* NodeTrackerManipulator */; settings = {ATTRIBUTES = (Public, ); }; }; 1917 1915 00E2814A07676854005AEE61 /* NodeTrackerManipulator.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 00E2814907676852005AEE61 /* NodeTrackerManipulator.cpp */; }; … … 6054 6052 00E2813B07676503005AEE61 /* TexEnvFilter.cpp */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.cpp; fileEncoding = 30; name = TexEnvFilter.cpp; path = ../../src/osg/TexEnvFilter.cpp; sourceTree = SOURCE_ROOT; }; 6055 6053 00E2813F07676626005AEE61 /* Archive */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp; fileEncoding = 30; name = Archive; path = ../../include/osgDB/Archive; sourceTree = SOURCE_ROOT; }; 6056 00E2814007676628005AEE61 /* ReentrantMutex */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp; fileEncoding = 30; name = ReentrantMutex; path = ../../include/osgDB/ReentrantMutex; sourceTree = SOURCE_ROOT; };6057 6054 00E28143076766D7005AEE61 /* Archive.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; name = Archive.cpp; path = ../../src/osgDB/Archive.cpp; sourceTree = SOURCE_ROOT; }; 6058 00E28144076766D9005AEE61 /* ReentrantMutex.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; name = ReentrantMutex.cpp; path = ../../src/osgDB/ReentrantMutex.cpp; sourceTree = SOURCE_ROOT; };6059 6055 00E28147076767D1005AEE61 /* NodeTrackerManipulator */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp; fileEncoding = 30; path = NodeTrackerManipulator; sourceTree = "<group>"; }; 6060 6056 00E2814907676852005AEE61 /* NodeTrackerManipulator.cpp */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.cpp; fileEncoding = 30; name = NodeTrackerManipulator.cpp; path = ../../src/osgGA/NodeTrackerManipulator.cpp; sourceTree = SOURCE_ROOT; }; … … 11507 11503 BE1188F505D765CD00EB53E5 /* ReadFile.cpp */, 11508 11504 008F446B06CBF99E00F4220C /* ReaderWriter.cpp */, 11509 00E28144076766D9005AEE61 /* ReentrantMutex.cpp */,11510 11505 BE1188F605D765CD00EB53E5 /* Registry.cpp */, 11511 11506 BE1188F705D765CD00EB53E5 /* SharedStateManager.cpp */, … … 11535 11530 BE11891805D7665600EB53E5 /* ReaderWriter */, 11536 11531 BE11891905D7665600EB53E5 /* ReadFile */, 11537 00E2814007676628005AEE61 /* ReentrantMutex */,11538 11532 BE11891A05D7665600EB53E5 /* Registry */, 11539 11533 BE11891B05D7665600EB53E5 /* SharedStateManager */, … … 13275 13269 BE11892B05D7665600EB53E5 /* ReaderWriter in Headers */, 13276 13270 BE11892C05D7665600EB53E5 /* ReadFile in Headers */, 13277 00E2814207676629005AEE61 /* ReentrantMutex in Headers */,13278 13271 BE11892D05D7665600EB53E5 /* Registry in Headers */, 13279 13272 BE11892E05D7665600EB53E5 /* SharedStateManager in Headers */, … … 19038 19031 008F446C06CBF99E00F4220C /* ReaderWriter.cpp in Sources */, 19039 19032 00E28145076766DA005AEE61 /* Archive.cpp in Sources */, 19040 00E28146076766DA005AEE61 /* ReentrantMutex.cpp in Sources */,19041 19033 ); 19042 19034 runOnlyForDeploymentPostprocessing = 0; OpenSceneGraph/trunk/examples/osgphotoalbum/ImageReaderWriter.h
r5328 r6267 19 19 20 20 #include <OpenThreads/ScopedLock> 21 #include < osgDB/ReentrantMutex>21 #include <OpenThreads/ReentrantMutex> 22 22 23 23 #include "PhotoArchive.h" 24 24 25 #define SERIALIZER() OpenThreads::ScopedLock< osgDB::ReentrantMutex> lock(_serializerMutex)25 #define SERIALIZER() OpenThreads::ScopedLock<OpenThreads::ReentrantMutex> lock(_serializerMutex) 26 26 27 27 class ImageReaderWriter : public osgDB::ReaderWriter … … 54 54 ReadResult local_readNode(const std::string& fileName, const Options*); 55 55 56 mutable osgDB::ReentrantMutex _serializerMutex;56 mutable OpenThreads::ReentrantMutex _serializerMutex; 57 57 58 58 struct DataReference OpenSceneGraph/trunk/include/osg/GraphicsContext
r6220 r6267 190 190 191 191 /** Get the operations queue block used to mark an empty queue, if you end items into the empty queu you must release this block.*/ 192 osg:: Block* getOperationsBlock() { return _operationsBlock.get(); }192 osg::RefBlock* getOperationsBlock() { return _operationsBlock.get(); } 193 193 194 194 /** Get the current operations that is being run.*/ … … 382 382 383 383 OpenThreads::Mutex _operationsMutex; 384 osg::ref_ptr<osg:: Block>_operationsBlock;384 osg::ref_ptr<osg::RefBlock> _operationsBlock; 385 385 OperationQueue _operations; 386 386 osg::ref_ptr<Operation> _currentOperation; OpenSceneGraph/trunk/include/osg/GraphicsThread
r6088 r6267 21 21 #include <OpenThreads/Barrier> 22 22 #include <OpenThreads/Condition> 23 #include <OpenThreads/Block> 23 24 24 25 #include <list> … … 26 27 namespace osg { 27 28 28 class Block: virtual public osg::Referenced { 29 class RefBlock: virtual public osg::Referenced, public OpenThreads::Block 30 { 29 31 public: 30 Block():_released(false) {}31 32 32 inline void block() 33 { 34 OpenThreads::ScopedLock<OpenThreads::Mutex> mutlock(_mut); 35 if( !_released ) 36 _cond.wait(&_mut); 37 } 33 RefBlock() {} 38 34 39 inline void release()40 {41 OpenThreads::ScopedLock<OpenThreads::Mutex> mutlock(_mut);42 if (!_released)43 {44 _released = true;45 _cond.broadcast();46 }47 }48 49 inline void reset()50 {51 OpenThreads::ScopedLock<OpenThreads::Mutex> mutlock(_mut);52 _released = false;53 }54 55 inline void set(bool doRelease)56 {57 if (doRelease!=_released)58 {59 if (doRelease) release();60 else reset();61 }62 }63 64 protected:65 66 ~Block()67 {68 release();69 }70 71 private:72 OpenThreads::Mutex _mut;73 OpenThreads::Condition _cond;74 bool _released;75 35 }; 76 36 … … 156 116 157 117 OpenThreads::Mutex _operationsMutex; 158 osg::ref_ptr<osg:: Block>_operationsBlock;118 osg::ref_ptr<osg::RefBlock> _operationsBlock; 159 119 OperationQueue _operations; 160 120 osg::ref_ptr<Operation> _currentOperation; … … 196 156 /** ReleaseContext_Block_MakeCurrentOperation releases the context for another thread to aquire, 197 157 * then blocks waiting for context to be released, once the block is release the context is re-aqquired.*/ 198 struct OSG_EXPORT ReleaseContext_Block_MakeCurrentOperation : public Operation, public Block158 struct OSG_EXPORT ReleaseContext_Block_MakeCurrentOperation : public Operation, public RefBlock 199 159 { 200 160 ReleaseContext_Block_MakeCurrentOperation(): OpenSceneGraph/trunk/include/osgDB/DatabasePager
r5795 r6267 85 85 bool getUseFrameBlock() const { return _useFrameBlock; } 86 86 87 osg:: Block* getFrameBlock() { return _frameBlock.get(); }87 osg::RefBlock* getFrameBlock() { return _frameBlock.get(); } 88 88 89 89 /** Set the priority of the database pager thread during the frame (i.e. while cull and draw are running.)*/ … … 294 294 295 295 296 osg::ref_ptr<osg:: Block>_databasePagerThreadBlock;296 osg::ref_ptr<osg::RefBlock> _databasePagerThreadBlock; 297 297 298 298 inline void updateDatabasePagerThreadBlock() … … 326 326 int _numFramesActive; 327 327 mutable OpenThreads::Mutex _numFramesActiveMutex; 328 osg::ref_ptr<osg:: Block>_frameBlock;328 osg::ref_ptr<osg::RefBlock> _frameBlock; 329 329 int _frameNumber; 330 330 OpenSceneGraph/trunk/include/osgParticle/ParticleSystem
r5979 r6267 31 31 #include <osg/BoundingBox> 32 32 33 #include < osgDB/ReentrantMutex>33 #include <OpenThreads/ReadWriteMutex> 34 34 35 35 namespace osgParticle … … 167 167 virtual osg::BoundingBox computeBound() const; 168 168 169 osgDB::ReadWriteMutex* getReadWriteMutex() const { return &_readWriteMutex; }169 OpenThreads::ReadWriteMutex* getReadWriteMutex() const { return &_readWriteMutex; } 170 170 171 171 protected: … … 206 206 mutable int _draw_count; 207 207 208 mutable osgDB::ReadWriteMutex _readWriteMutex;208 mutable OpenThreads::ReadWriteMutex _readWriteMutex; 209 209 210 210 }; OpenSceneGraph/trunk/src/osg/GraphicsContext.cpp
r6088 r6267 138 138 { 139 139 setThreadSafeRefUnref(true); 140 _operationsBlock = new Block;140 _operationsBlock = new RefBlock; 141 141 } 142 142 … … 147 147 { 148 148 setThreadSafeRefUnref(true); 149 _operationsBlock = new Block;149 _operationsBlock = new RefBlock; 150 150 } 151 151 OpenSceneGraph/trunk/src/osg/GraphicsThread.cpp
r6230 r6267 45 45 _done(false) 46 46 { 47 _operationsBlock = new Block;47 _operationsBlock = new RefBlock; 48 48 } 49 49 OpenSceneGraph/trunk/src/osgDB/DatabasePager.cpp
r5874 r6267 38 38 _numFramesActive = 0; 39 39 _frameNumber = 0; 40 _frameBlock = new osg:: Block;41 _databasePagerThreadBlock = new osg:: Block;40 _frameBlock = new osg::RefBlock; 41 _databasePagerThreadBlock = new osg::RefBlock; 42 42 43 43 _threadPriorityDuringFrame = THREAD_PRIORITY_MIN; OpenSceneGraph/trunk/src/osgDB/GNUmakefile
r4076 r6267 10 10 ReadFile.cpp\ 11 11 ReaderWriter.cpp\ 12 ReentrantMutex.cpp\13 12 Registry.cpp\ 14 13 Version.cpp\ OpenSceneGraph/trunk/src/osgParticle/ConnectedParticleSystem.cpp
r5858 r6267 115 115 void ConnectedParticleSystem::drawImplementation(osg::State& state) const 116 116 { 117 osgDB::ScopedReadLock lock(_readWriteMutex);117 OpenThreads::ScopedReadLock lock(_readWriteMutex); 118 118 119 119 const Particle* particle = (_startParticle != Particle::INVALID_INDEX) ? &_particles[_startParticle] : 0; OpenSceneGraph/trunk/src/osgParticle/ParticleProcessor.cpp
r6051 r6267 65 65 if (nv.getFrameStamp()) 66 66 { 67 osgDB::ScopedWriteLock lock(*(_ps->getReadWriteMutex()));67 OpenThreads::ScopedWriteLock lock(*(_ps->getReadWriteMutex())); 68 68 69 69 //added- 1/17/06- bgandere@nps.edu OpenSceneGraph/trunk/src/osgParticle/ParticleSystem.cpp
r5855 r6267 92 92 void osgParticle::ParticleSystem::drawImplementation(osg::State& state) const 93 93 { 94 osgDB::ScopedReadLock lock(_readWriteMutex);94 OpenThreads::ScopedReadLock lock(_readWriteMutex); 95 95 96 96 // update the frame count, so other objects can detect when OpenSceneGraph/trunk/src/osgParticle/ParticleSystemUpdater.cpp
r6051 r6267 41 41 ParticleSystem* ps = i->get(); 42 42 43 osgDB::ScopedWriteLock lock(*(ps->getReadWriteMutex()));43 OpenThreads::ScopedWriteLock lock(*(ps->getReadWriteMutex())); 44 44 45 45 if (!ps->isFrozen() && (ps->getLastFrameNumber() >= (nv.getFrameStamp()->getFrameNumber() - 1) || !ps->getFreezeOnCull())) OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/ReaderWriterFLT.cpp
r6257 r6267 12 12 #include <osgDB/Registry> 13 13 #include <osgDB/ReadFile> 14 #include < osgDB/ReentrantMutex>14 #include <OpenThreads/ReentrantMutex> 15 15 #include <osgUtil/Optimizer> 16 16 … … 19 19 #include "RecordInputStream.h" 20 20 21 #define SERIALIZER() OpenThreads::ScopedLock< osgDB::ReentrantMutex> lock(_serializerMutex)21 #define SERIALIZER() OpenThreads::ScopedLock<OpenThreads::ReentrantMutex> lock(_serializerMutex) 22 22 23 23 using namespace flt; … … 280 280 protected: 281 281 282 mutable osgDB::ReentrantMutex _serializerMutex;282 mutable OpenThreads::ReentrantMutex _serializerMutex; 283 283 }; 284 284 OpenSceneGraph/trunk/src/osgPlugins/dae/ReaderWriterDAE.cpp
r5615 r6267 19 19 20 20 #include <OpenThreads/ScopedLock> 21 #include < osgDB/ReentrantMutex>21 #include <OpenThreads/ReentrantMutex> 22 22 23 23 #include "daeReader.h" … … 26 26 #define EXTENSION_NAME "dae" 27 27 28 #define SERIALIZER() OpenThreads::ScopedLock< osgDB::ReentrantMutex> lock(_serializerMutex)28 #define SERIALIZER() OpenThreads::ScopedLock<OpenThreads::ReentrantMutex> lock(_serializerMutex) 29 29 30 30 /////////////////////////////////////////////////////////////////////////// … … 62 62 63 63 mutable DAE *_dae; 64 mutable osgDB::ReentrantMutex _serializerMutex;64 mutable OpenThreads::ReentrantMutex _serializerMutex; 65 65 66 66 }; OpenSceneGraph/trunk/src/osgPlugins/flt/ReaderWriterFLT.cpp
r4288 r6267 27 27 { 28 28 // serialize all access to the OpenFlight plugin as its not thread safe by itself. 29 OpenThreads::ScopedLock< osgDB::ReentrantMutex> lock(_serializerMutex);29 OpenThreads::ScopedLock<OpenThreads::ReentrantMutex> lock(_serializerMutex); 30 30 31 31 std::string ext = osgDB::getLowerCaseFileExtension(file); OpenSceneGraph/trunk/src/osgPlugins/flt/ReaderWriterFLT.h
r4288 r6267 39 39 #include <osgDB/Registry> 40 40 #include <osgDB/FileNameUtils> 41 #include < osgDB/ReentrantMutex>41 #include <OpenThreads/ReentrantMutex> 42 42 43 43 … … 60 60 protected: 61 61 62 mutable osgDB::ReentrantMutex _serializerMutex;62 mutable OpenThreads::ReentrantMutex _serializerMutex; 63 63 }; 64 64 OpenSceneGraph/trunk/src/osgPlugins/gdal/ReaderWriterGDAL.cpp
r4706 r6267 10 10 11 11 #include <OpenThreads/ScopedLock> 12 #include < osgDB/ReentrantMutex>12 #include <OpenThreads/ReentrantMutex> 13 13 14 14 #include <gdal_priv.h> 15 15 16 #define SERIALIZER() OpenThreads::ScopedLock< osgDB::ReentrantMutex> lock(_serializerMutex)16 #define SERIALIZER() OpenThreads::ScopedLock<OpenThreads::ReentrantMutex> lock(_serializerMutex) 17 17 18 18 // From easyrgb.com … … 38 38 virtual ReadResult readImage(const std::string& fileName, const osgDB::ReaderWriter::Options* options) const 39 39 { 40 OpenThreads::ScopedLock< osgDB::ReentrantMutex> lock(_serializerMutex);40 OpenThreads::ScopedLock<OpenThreads::ReentrantMutex> lock(_serializerMutex); 41 41 return const_cast<ReaderWriterGDAL*>(this)->local_readImage(fileName, options); 42 42 } … … 44 44 virtual ReadResult readHeightField(const std::string& fileName, const osgDB::ReaderWriter::Options* options) const 45 45 { 46 OpenThreads::ScopedLock< osgDB::ReentrantMutex> lock(_serializerMutex);46 OpenThreads::ScopedLock<OpenThreads::ReentrantMutex> lock(_serializerMutex); 47 47 return const_cast<ReaderWriterGDAL*>(this)->local_readHeightField(fileName, options); 48 48 } … … 730 730 } 731 731 732 mutable osgDB::ReentrantMutex _serializerMutex;732 mutable OpenThreads::ReentrantMutex _serializerMutex; 733 733 734 734 }; OpenSceneGraph/trunk/src/osgPlugins/osga/OSGA_Archive.h
r4363 r6267 17 17 18 18 #include <OpenThreads/ScopedLock> 19 #include < osgDB/ReentrantMutex>20 21 #define SERIALIZER() OpenThreads::ScopedLock< osgDB::ReentrantMutex> lock(_serializerMutex)19 #include <OpenThreads/ReentrantMutex> 20 21 #define SERIALIZER() OpenThreads::ScopedLock<OpenThreads::ReentrantMutex> lock(_serializerMutex) 22 22 23 23 class OSGA_Archive : public osgDB::Archive … … 94 94 protected: 95 95 96 mutable osgDB::ReentrantMutex _serializerMutex;96 mutable OpenThreads::ReentrantMutex _serializerMutex; 97 97 98 98 class IndexBlock; OpenSceneGraph/trunk/src/osgPlugins/txp/ReaderWriterTXP.h
r5188 r6267 45 45 46 46 #include <OpenThreads/ScopedLock> 47 #include < osgDB/ReentrantMutex>47 #include <OpenThreads/ReentrantMutex> 48 48 49 49 #include "TXPArchive.h" … … 69 69 return ReadResult::FILE_NOT_HANDLED; 70 70 71 OpenThreads::ScopedLock< osgDB::ReentrantMutex> lock(_serializerMutex);71 OpenThreads::ScopedLock<OpenThreads::ReentrantMutex> lock(_serializerMutex); 72 72 73 73 return const_cast<ReaderWriterTXP*>(this)->local_readNode(file, options); … … 86 86 bool extractChildrenLocations(const std::string& name, int parentLod, std::vector<TXPArchive::TileLocationInfo>& locs, int nbChild) const; 87 87 88 mutable osgDB::ReentrantMutex _serializerMutex;88 mutable OpenThreads::ReentrantMutex _serializerMutex; 89 89 90 90 std::map< int,osg::ref_ptr<TXPArchive> > _archives; OpenSceneGraph/trunk/src/osgWrappers/osg/GraphicsContext.cpp
r6227 r6267 67 67 "Get the operations queue mutex. ", 68 68 ""); 69 I_Method0(osg:: Block *, getOperationsBlock,70 Properties::NON_VIRTUAL, 71 __osg_ Block_P1__getOperationsBlock,69 I_Method0(osg::RefBlock *, getOperationsBlock, 70 Properties::NON_VIRTUAL, 71 __osg_RefBlock_P1__getOperationsBlock, 72 72 "Get the operations queue block used to mark an empty queue, if you end items into the empty queu you must release this block. ", 73 73 ""); … … 306 306 __OperationsThread_P1__getGraphicsThread, 307 307 __void__setGraphicsThread__OperationsThread_P1); 308 I_SimpleProperty(osg:: Block *, OperationsBlock,309 __osg_ Block_P1__getOperationsBlock,308 I_SimpleProperty(osg::RefBlock *, OperationsBlock, 309 __osg_RefBlock_P1__getOperationsBlock, 310 310 0); 311 311 I_SimpleProperty(OpenThreads::Mutex *, OperationsMutex, OpenSceneGraph/trunk/src/osgWrappers/osg/GraphicsThread.cpp
r6180 r6267 40 40 ""); 41 41 I_PublicMemberProperty(osg::BarrierOperation::PreBlockOp, _preBlockOp); 42 END_REFLECTOR43 44 BEGIN_OBJECT_REFLECTOR(osg::Block)45 I_VirtualBaseType(osg::Referenced);46 I_Constructor0(____Block,47 "",48 "");49 I_Method0(void, block,50 Properties::NON_VIRTUAL,51 __void__block,52 "",53 "");54 I_Method0(void, release,55 Properties::NON_VIRTUAL,56 __void__release,57 "",58 "");59 I_Method0(void, reset,60 Properties::NON_VIRTUAL,61 __void__reset,62 "",63 "");64 I_Method1(void, set, IN, bool, doRelease,65 Properties::NON_VIRTUAL,66 __void__set__bool,67 "",68 "");69 42 END_REFLECTOR 70 43 … … 186 159 END_REFLECTOR 187 160 161 BEGIN_OBJECT_REFLECTOR(osg::RefBlock) 162 I_VirtualBaseType(osg::Referenced); 163 I_Constructor0(____RefBlock, 164 "", 165 ""); 166 END_REFLECTOR 167 188 168 BEGIN_OBJECT_REFLECTOR(osg::ReleaseContext_Block_MakeCurrentOperation) 189 169 I_BaseType(osg::Operation); 190 I_BaseType(osg:: Block);170 I_BaseType(osg::RefBlock); 191 171 I_Constructor0(____ReleaseContext_Block_MakeCurrentOperation, 192 172 "", … … 195 175 Properties::VIRTUAL, 196 176 __void__release, 197 " ",177 "if this operation is a barrier then release it. ", 198 178 ""); 199 179 END_REFLECTOR OpenSceneGraph/trunk/src/osgWrappers/osgDB/DatabasePager.cpp
r6180 r6267 109 109 "Get the whether UseFrameBlock is on or off. ", 110 110 ""); 111 I_Method0(osg:: Block *, getFrameBlock,112 Properties::NON_VIRTUAL, 113 __osg_ Block_P1__getFrameBlock,111 I_Method0(osg::RefBlock *, getFrameBlock, 112 Properties::NON_VIRTUAL, 113 __osg_RefBlock_P1__getFrameBlock, 114 114 "", 115 115 ""); … … 312 312 __unsigned_int__getFileRequestListSize, 313 313 0); 314 I_SimpleProperty(osg:: Block *, FrameBlock,315 __osg_ Block_P1__getFrameBlock,314 I_SimpleProperty(osg::RefBlock *, FrameBlock, 315 __osg_RefBlock_P1__getFrameBlock, 316 316 0); 317 317 I_SimpleProperty(unsigned int, MaximumNumOfObjectsToCompilePerFrame, OpenSceneGraph/trunk/src/osgWrappers/osgDB/GNUmakefile
r6227 r6267 16 16 ParameterOutput.cpp\ 17 17 ReaderWriter.cpp\ 18 ReentrantMutex.cpp\19 18 Registry.cpp\ 20 19 SharedStateManager.cpp\ OpenSceneGraph/trunk/src/osgWrappers/osgParticle/ParticleSystem.cpp
r6227 r6267 16 16 #include <osg/State> 17 17 #include <osg/Vec3> 18 #include <osgDB/ReentrantMutex>19 18 #include <osgParticle/Particle> 20 19 #include <osgParticle/ParticleSystem> … … 232 231 "Compute the bounding box around Drawables's geometry. ", 233 232 ""); 234 I_Method0( osgDB::ReadWriteMutex *, getReadWriteMutex,235 Properties::NON_VIRTUAL, 236 __ osgDB_ReadWriteMutex_P1__getReadWriteMutex,233 I_Method0(OpenThreads::ReadWriteMutex *, getReadWriteMutex, 234 Properties::NON_VIRTUAL, 235 __OpenThreads_ReadWriteMutex_P1__getReadWriteMutex, 237 236 "", 238 237 ""); … … 267 266 __Alignment__getParticleAlignment, 268 267 __void__setParticleAlignment__Alignment); 269 I_SimpleProperty( osgDB::ReadWriteMutex *, ReadWriteMutex,270 __ osgDB_ReadWriteMutex_P1__getReadWriteMutex,268 I_SimpleProperty(OpenThreads::ReadWriteMutex *, ReadWriteMutex, 269 __OpenThreads_ReadWriteMutex_P1__getReadWriteMutex, 271 270 0); 272 271 END_REFLECTOR
