diff options
author | Noel Grandin <noelgrandin@collabora.co.uk> | 2023-02-01 15:54:20 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-02-01 17:09:12 +0000 |
commit | 7c035ff67993707cfd09c575a97028dab9683557 (patch) | |
tree | 95c22e91d8b333fdeea3de743bffd7dac209b4d6 /bridges/source | |
parent | 2798430c8a711861fdcdfbf9ac00a0527abd3bfc (diff) |
osl::Mutex->std::mutex in ExceptionInfos
Change-Id: Ic947b58b9aba121c605b6795c7cd9aa0b16b180e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146455
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'bridges/source')
-rw-r--r-- | bridges/source/cpp_uno/msvc_shared/except.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bridges/source/cpp_uno/msvc_shared/except.cxx b/bridges/source/cpp_uno/msvc_shared/except.cxx index 283baa75173c..f76533fa160e 100644 --- a/bridges/source/cpp_uno/msvc_shared/except.cxx +++ b/bridges/source/cpp_uno/msvc_shared/except.cxx @@ -131,7 +131,7 @@ ExceptionInfos::~ExceptionInfos() noexcept { SAL_INFO("bridges", "> freeing exception infos... <"); - osl::MutexGuard aGuard(m_aMutex); + std::unique_lock aGuard(m_aMutex); for (auto& rEntry : m_allRaiseInfos) delete static_cast<RaiseInfo*>(rEntry.second); } @@ -154,7 +154,7 @@ RaiseInfo* ExceptionInfos::getRaiseInfo(typelib_TypeDescription* pTD) noexcept RaiseInfo* pRaiseInfo; OUString const& rTypeName = OUString::unacquired(&pTD->pTypeName); - osl::MutexGuard aGuard(s_pInfos->m_aMutex); + std::unique_lock aGuard(s_pInfos->m_aMutex); t_string2PtrMap::const_iterator const iFind(s_pInfos->m_allRaiseInfos.find(rTypeName)); if (iFind != s_pInfos->m_allRaiseInfos.end()) pRaiseInfo = static_cast<RaiseInfo*>(iFind->second); |