diff --git a/src/osgDB/ReentrantMutex.cpp b/src/osgDB/ReentrantMutex.cpp index cbb0e1492..a98745d54 100644 --- a/src/osgDB/ReentrantMutex.cpp +++ b/src/osgDB/ReentrantMutex.cpp @@ -15,6 +15,7 @@ using namespace osgDB; +using namespace OpenThreads; ReentrantMutex::ReentrantMutex(): _threadHoldingMutex(0), @@ -35,7 +36,7 @@ int ReentrantMutex::lock() } else { - int result = OpenThreads::Mutex::lock(); + int result = /*OpenThreads::*/Mutex::lock(); if (result==0) { _threadHoldingMutex = OpenThreads::Thread::CurrentThread(); @@ -50,7 +51,7 @@ int ReentrantMutex::unlock() if (_threadHoldingMutex==OpenThreads::Thread::CurrentThread() && _lockCount>0) { --_lockCount; - if (_lockCount<=0) return OpenThreads::Mutex::unlock(); + if (_lockCount<=0) return Mutex::unlock(); } return 0; } @@ -64,7 +65,7 @@ int ReentrantMutex::trylock() } else { - int result = OpenThreads::Mutex::trylock(); + int result = Mutex::trylock(); if (result==0) { _threadHoldingMutex = OpenThreads::Thread::CurrentThread();