diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-11-05 14:38:28 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-11-06 20:40:22 -0500 |
commit | 7045802f27f3efe74b4ed9146d33abe253df043a (patch) | |
tree | 22ce4c91571d608e6ca10e1220285f1c720c36d8 /include | |
parent | 9611851a5349f564ba97bacd9619eb8b329ae283 (diff) |
Add mutex to guard the shared string pool content.
Change-Id: I0eb97d0fbeaefd8a1c86d240ed8bd7f208fb662e
Diffstat (limited to 'include')
-rw-r--r-- | include/svl/sharedstringpool.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/svl/sharedstringpool.hxx b/include/svl/sharedstringpool.hxx index 1b2796d1d514..b2cb367e3e2b 100644 --- a/include/svl/sharedstringpool.hxx +++ b/include/svl/sharedstringpool.hxx @@ -11,6 +11,7 @@ #define INCLUDED_SVL_SHAREDSTRINGPOOL_HXX #include "svl/sharedstring.hxx" +#include "osl/mutex.hxx" #include <boost/unordered_map.hpp> #include <boost/unordered_set.hpp> @@ -30,6 +31,7 @@ class SVL_DLLPUBLIC SharedStringPool typedef std::pair<StrHashType::iterator, bool> InsertResultType; typedef boost::unordered_map<const rtl_uString*, OUString> StrStoreType; + mutable osl::Mutex maMutex; StrHashType maStrPool; StrHashType maStrPoolUpper; StrStoreType maStrStore; |