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>
This commit is contained in:
parent
946d038c71
commit
2fffe41501
1 changed files with 3 additions and 1 deletions
|
@ -745,7 +745,9 @@ Any SAL_CALL AnimationNode::queryInterface( const Type& aType )
|
||||||
|
|
||||||
void AnimationNode::initTypeProvider( sal_Int16 nNodeType ) noexcept
|
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] )
|
if( mpTypes[nNodeType] )
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue