diff options
author | Arnaud VERSINI <arnaud.versini@libreoffice.org> | 2022-07-16 20:30:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-17 19:29:22 +0200 |
commit | 2fffe41501aa694082da2ac92e925b98c704bffd (patch) | |
tree | d801eb3e768ec7c4b9dd6a9e83479bc24090a8ce /animations | |
parent | 946d038c71ae09f3ae403474d66c26c959a18e13 (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.cxx | 4 |
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; |