summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2021-06-18 00:00:40 +0200
committerStephan Bergmann <sbergman@redhat.com>2021-06-18 11:03:47 +0200
commit6317f8cc83ec92b8700785ab67c4c66ed1aa8fb2 (patch)
tree7b11c8e793eb8cbc1bd4dc8e0f37bd50eb797d05
parent781c70a8c87878ac0e53c9c4619a4d19d3d737de (diff)
Re-add a removed mutex
In commit b33fbd55d630, many getMutex() have been replaced by an equivalent maMutex. Only in place, the use of a mutex have been simply removed. Restore it as done in all the other places Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Change-Id: Id85e74e166ec57dd37f8913f8ecf19e2b6465f8f --- This patch is completely speculative. The removal of this mutex was maybe done on purpose. This only looks spurious to me. Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117402 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--cppu/source/typelib/typelib.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx
index 7c392e147c89..26875778c22b 100644
--- a/cppu/source/typelib/typelib.cxx
+++ b/cppu/source/typelib/typelib.cxx
@@ -2289,6 +2289,7 @@ extern "C" void SAL_CALL typelib_setCacheSize( sal_Int32 nNewSize )
return;
TypeDescriptor_Init_Impl &rInit = Init::get();
+ MutexGuard aGuard( rInit.maMutex );
if (nNewSize < nCacheSize)
{
while (static_cast<sal_Int32>(rInit.maCache.size()) != nNewSize)