diff options
Diffstat (limited to 'cppu/source/uno/EnvStack.cxx')
-rw-r--r-- | cppu/source/uno/EnvStack.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cppu/source/uno/EnvStack.cxx b/cppu/source/uno/EnvStack.cxx index 033f9d94ce3f..2356948c51c5 100644 --- a/cppu/source/uno/EnvStack.cxx +++ b/cppu/source/uno/EnvStack.cxx @@ -76,7 +76,7 @@ static void s_setCurrent(uno_Environment * pEnv) { oslThreadIdentifier threadId = osl::Thread::getCurrentIdentifier(); - std::lock_guard guard(s_threadMap_mutex); + std::scoped_lock guard(s_threadMap_mutex); if (pEnv) { s_threadMap[threadId] = pEnv; @@ -95,7 +95,7 @@ static uno_Environment * s_getCurrent() oslThreadIdentifier threadId = osl::Thread::getCurrentIdentifier(); - std::lock_guard guard(s_threadMap_mutex); + std::scoped_lock guard(s_threadMap_mutex); ThreadMap::iterator iEnv = s_threadMap.find(threadId); if(iEnv != s_threadMap.end()) pEnv = iEnv->second; |