forked from mirror/openmw-tes3mp
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();
|
ResourceManager::clearCache();
|
||||||
|
|
||||||
mSharedStateMutex.lock();
|
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(mSharedStateMutex);
|
||||||
mSharedStateManager->clearCache();
|
mSharedStateManager->clearCache();
|
||||||
mSharedStateMutex.unlock();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void SceneManager::reportStats(unsigned int frameNumber, osg::Stats *stats) const
|
void SceneManager::reportStats(unsigned int frameNumber, osg::Stats *stats) const
|
||||||
|
|
Loading…
Reference in a new issue