diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-11-21 18:35:23 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-22 07:55:06 +0100 |
commit | 60e185446eef9c4084b22901f1ffb41b36628b6e (patch) | |
tree | 6248b9aa552a92a8e16cb0061464852e249685d8 /i18npool | |
parent | 7805a224b96897807e49fd49dd5276d6089b0b5c (diff) |
osl::Mutex->std::mutex in TransliterationImpl::loadBody
Change-Id: I15441110bf27c3f2ad9a61389339c55b9c4c3bb4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125632
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18npool')
-rw-r--r-- | i18npool/source/transliteration/transliterationImpl.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/i18npool/source/transliteration/transliterationImpl.cxx b/i18npool/source/transliteration/transliterationImpl.cxx index 09e791c33e71..c85d16442341 100644 --- a/i18npool/source/transliteration/transliterationImpl.cxx +++ b/i18npool/source/transliteration/transliterationImpl.cxx @@ -30,6 +30,7 @@ #include <rtl/ustring.hxx> #include <algorithm> +#include <mutex> #include <numeric> using namespace com::sun::star::uno; @@ -586,8 +587,8 @@ namespace void TransliterationImpl::loadBody( OUString const &implName, Reference<XExtendedTransliteration>& body ) { assert(!implName.isEmpty()); - static osl::Mutex transBodyMutex; - ::osl::MutexGuard guard(transBodyMutex); + static std::mutex transBodyMutex; + std::unique_lock guard(transBodyMutex); static TransBody lastTransBody; if (implName != lastTransBody.Name) { |