Use scoped lock instead of directly locking/unlocking mutex

pull/280/head
Kyle Cooley 7 years ago
parent 3b9326d238
commit 679a284735

@ -721,9 +721,8 @@ namespace Resource
{
ResourceManager::clearCache();
mSharedStateMutex.lock();
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(mSharedStateMutex);
mSharedStateManager->clearCache();
mSharedStateMutex.unlock();
}
void SceneManager::reportStats(unsigned int frameNumber, osg::Stats *stats) const

Loading…
Cancel
Save