summaryrefslogtreecommitdiff
path: root/animations
diff options
context:
space:
mode:
authorArnaud VERSINI <arnaud.versini@libreoffice.org>2022-07-16 20:30:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-07-17 19:29:22 +0200
commit2fffe41501aa694082da2ac92e925b98c704bffd (patch)
treed801eb3e768ec7c4b9dd6a9e83479bc24090a8ce /animations
parent946d038c71ae09f3ae403474d66c26c959a18e13 (diff)
Animations : no need to use the global mutex here
Change-Id: Ia63a570efdd15c60fc31d978a23e76102e466745 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137141 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'animations')
-rw-r--r--animations/source/animcore/animcore.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/animations/source/animcore/animcore.cxx b/animations/source/animcore/animcore.cxx
index 737da604a594..04e7a7daa879 100644
--- a/animations/source/animcore/animcore.cxx
+++ b/animations/source/animcore/animcore.cxx
@@ -745,7 +745,9 @@ Any SAL_CALL AnimationNode::queryInterface( const Type& aType )
void AnimationNode::initTypeProvider( sal_Int16 nNodeType ) noexcept
{
- ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
+ static std::mutex aMutex;
+
+ std::scoped_lock aGuard(aMutex);
if( mpTypes[nNodeType] )
return;