summaryrefslogtreecommitdiff
path: root/i18nlangtag
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-09-19 19:37:39 +0200
committerEike Rathke <erack@redhat.com>2013-09-19 19:38:02 +0200
commit01f351830b139f3ab7b63611e8630256d37aaff6 (patch)
tree8d3f798100d525bd3b46968a5680e2defbb2ef94 /i18nlangtag
parentfed96abcb593925ab4fd39e3938632a54b37ee8b (diff)
better mutex guard this
Change-Id: Ic5cc38c76f6eae11460e0b6e3c55d0e2333a0b09
Diffstat (limited to 'i18nlangtag')
-rw-r--r--i18nlangtag/source/languagetag/languagetag.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/i18nlangtag/source/languagetag/languagetag.cxx b/i18nlangtag/source/languagetag/languagetag.cxx
index 68e474f428af..ea5ef6627512 100644
--- a/i18nlangtag/source/languagetag/languagetag.cxx
+++ b/i18nlangtag/source/languagetag/languagetag.cxx
@@ -606,6 +606,8 @@ LanguageTag::ImplPtr LanguageTag::registerImpl() const
mbInitializedBcp47 = !maBcp47.isEmpty();
}
+ osl::MutexGuard aGuard( theMutex::get());
+
// Prefer LangID map as find+insert needs less comparison work.
if (mbInitializedLangID)
{