summaryrefslogtreecommitdiff
path: root/comphelper/source/misc/officerestartmanager.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-03-10 14:05:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-03-11 05:53:57 +0000
commit5126c94cea90251f73b7b383e23ffa473ac5f5f0 (patch)
treea5baee2ff3562d382cf319a9158c60e4c3e7ff22 /comphelper/source/misc/officerestartmanager.cxx
parent125287c157e1d0db199f5e14364948181c572c11 (diff)
osl::Mutex->std::mutex in OOfficeRestartManager
Change-Id: I473d604346280cb24c299e0e6d6ca2621a2200a9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148658 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'comphelper/source/misc/officerestartmanager.cxx')
-rw-r--r--comphelper/source/misc/officerestartmanager.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/comphelper/source/misc/officerestartmanager.cxx b/comphelper/source/misc/officerestartmanager.cxx
index 39c61a4e53a3..86eb18f623c9 100644
--- a/comphelper/source/misc/officerestartmanager.cxx
+++ b/comphelper/source/misc/officerestartmanager.cxx
@@ -39,7 +39,7 @@ void SAL_CALL OOfficeRestartManager::requestRestart( const uno::Reference< task:
throw uno::RuntimeException();
{
- ::osl::MutexGuard aGuard( m_aMutex );
+ std::unique_lock aGuard( m_aMutex );
// if the restart already running there is no need to trigger it again
if ( m_bRestartRequested )
@@ -76,7 +76,7 @@ void SAL_CALL OOfficeRestartManager::requestRestart( const uno::Reference< task:
sal_Bool SAL_CALL OOfficeRestartManager::isRestartRequested( sal_Bool bOfficeInitialized )
{
- ::osl::MutexGuard aGuard( m_aMutex );
+ std::unique_lock aGuard( m_aMutex );
if ( bOfficeInitialized && !m_bOfficeInitialized )
m_bOfficeInitialized = bOfficeInitialized;