basic/source/basmgr/basicmanagerrepository.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit de9fa7b24c14473ce97fac2edc124093e5a17814 Author: Noel Grandin <noelgran...@gmail.com> AuthorDate: Fri Dec 17 18:52:59 2021 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Sat Dec 18 19:08:28 2021 +0100 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 <noel.gran...@collabora.co.uk> 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 <sot/storage.hxx> #include <map> +#include <mutex> namespace basic @@ -206,8 +207,8 @@ namespace basic { tools::SvRef<SvRefBase>& 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; }