diff options
author | Arnaud Versini <arnaud.versini@libreoffice.org> | 2022-03-30 11:00:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-01 10:07:55 +0200 |
commit | 8fa40be492f4ae85eb3f0db363bd8d2cf7c214a6 (patch) | |
tree | f43f0286f88b336d64ce47e1c47baf6a2207002e /cpputools | |
parent | 678446780446ae568ee8b1b814158c54ea5e393f (diff) |
cpputools : use std::mutex instead of osl::Mutex
Change-Id: I75879a0f03d8212ac9392c04fb76113cf24d510e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132300
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cpputools')
-rw-r--r-- | cpputools/source/unoexe/unoexe.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpputools/source/unoexe/unoexe.cxx b/cpputools/source/unoexe/unoexe.cxx index b9dca78b67ce..31d6d6bdfac2 100644 --- a/cpputools/source/unoexe/unoexe.cxx +++ b/cpputools/source/unoexe/unoexe.cxx @@ -18,6 +18,7 @@ */ #include <stdio.h> +#include <mutex> #include <string_view> #include <sal/main.h> @@ -229,7 +230,7 @@ class OInstanceProvider { Reference< XComponentContext > _xContext; - Mutex _aSingleInstanceMutex; + std::mutex _aSingleInstanceMutex; Reference< XInterface > _xSingleInstance; bool _bSingleInstance; @@ -296,7 +297,7 @@ Reference< XInterface > OInstanceProvider::getInstance( const OUString & rName ) { if (! _xSingleInstance.is()) { - MutexGuard aGuard( _aSingleInstanceMutex ); + std::lock_guard aGuard( _aSingleInstanceMutex ); if (! _xSingleInstance.is()) { _xSingleInstance = createInstance(); |