summaryrefslogtreecommitdiff
path: root/basic/source/basmgr
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-12-17 18:52:59 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-12-18 19:08:28 +0100
commitde9fa7b24c14473ce97fac2edc124093e5a17814 (patch)
tree52bb6c2e6c3c873ca0348dc800e9ada83c1d389e /basic/source/basmgr
parent4f043fb3e78429277ba94f05f57fae408d6bda12 (diff)
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.grandin@collabora.co.uk>
Diffstat (limited to 'basic/source/basmgr')
-rw-r--r--basic/source/basmgr/basicmanagerrepository.cxx5
1 files changed, 3 insertions, 2 deletions
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;
}