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:
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…
x
Reference in New Issue
Block a user