From de9fa7b24c14473ce97fac2edc124093e5a17814 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 17 Dec 2021 18:52:59 +0200 Subject: osl::Mutex->std::mutex in ImplRepository Change-Id: Ie3cd416d32214fe4a0477c50bf49749ac620d76a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127072 Tested-by: Jenkins Reviewed-by: Noel Grandin --- basic/source/basmgr/basicmanagerrepository.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'basic/source') diff --git a/basic/source/basmgr/basicmanagerrepository.cxx b/basic/source/basmgr/basicmanagerrepository.cxx index a70c49eb1149..3a0405f472d0 100644 --- a/basic/source/basmgr/basicmanagerrepository.cxx +++ b/basic/source/basmgr/basicmanagerrepository.cxx @@ -42,6 +42,7 @@ #include #include +#include namespace basic @@ -206,8 +207,8 @@ namespace basic { tools::SvRef& repository = GetSbxData_Impl().mrImplRepository; { - static osl::Mutex aMutex; - osl::MutexGuard aGuard(aMutex); + static std::mutex aMutex; + std::unique_lock aGuard(aMutex); if (!repository) repository = new ImplRepository; } -- cgit v1.2.3