diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-07-18 14:18:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-19 08:54:19 +0200 |
commit | 4408001f5c0a76107d8fe01053a0e6348100a878 (patch) | |
tree | 7bcc7af6eadf2ee8e34725403889988cbd0bb57b /cppu | |
parent | e9570e324a750d103d0116a2e3495306757f1a64 (diff) |
osl::Mutex->std::mutex in MappingsData
Change-Id: I12f46a5468e7d7dde9bfde977adf4ea13eb89ae3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119138
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cppu')
-rw-r--r-- | cppu/source/uno/lbmap.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cppu/source/uno/lbmap.cxx b/cppu/source/uno/lbmap.cxx index 685bf6d4a2a8..a39eb409a765 100644 --- a/cppu/source/uno/lbmap.cxx +++ b/cppu/source/uno/lbmap.cxx @@ -24,6 +24,7 @@ #include "IdentityMapping.hxx" #include <cassert> +#include <mutex> #include <set> #include <unordered_map> @@ -158,7 +159,7 @@ struct MappingsData set< uno_getMappingFunc > aCallbacks; - Mutex aNegativeLibsMutex; + std::mutex aNegativeLibsMutex; set<OUString> aNegativeLibs; }; @@ -318,7 +319,7 @@ static OUString getBridgeName( static void setNegativeBridge( const OUString & rBridgeName ) { MappingsData & rData = getMappingsData(); - MutexGuard aGuard( rData.aNegativeLibsMutex ); + std::lock_guard aGuard( rData.aNegativeLibsMutex ); rData.aNegativeLibs.insert( rBridgeName ); } @@ -355,7 +356,7 @@ static bool loadModule(osl::Module & rModule, const OUString & rBridgeName) bool bNeg; { MappingsData & rData = getMappingsData(); - MutexGuard aGuard( rData.aNegativeLibsMutex ); + std::lock_guard aGuard( rData.aNegativeLibsMutex ); const auto iFind( rData.aNegativeLibs.find( rBridgeName ) ); bNeg = (iFind != rData.aNegativeLibs.end()); } |