forked from teamnwah/openmw-tes3coop
Use scoped lock instead of directly locking/unlocking mutex
This commit is contained in:
parent
3b9326d238
commit
679a284735
1 changed files with 1 additions and 2 deletions
|
@ -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…
Reference in a new issue