1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-14 01:19:59 +00:00

Use scoped lock instead of directly locking/unlocking mutex

This commit is contained in:
Kyle Cooley 2017-08-21 13:33:11 -04:00
parent 3b9326d238
commit 679a284735

View File

@ -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