animations/source/animcore/animcore.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit 2fffe41501aa694082da2ac92e925b98c704bffd Author: Arnaud VERSINI <arnaud.vers...@libreoffice.org> AuthorDate: Sat Jul 16 20:30:15 2022 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Sun Jul 17 19:29:22 2022 +0200 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.gran...@collabora.co.uk> 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;