summaryrefslogtreecommitdiffstats
path: root/framework/source/fwi/threadhelp/transactionmanager.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source/fwi/threadhelp/transactionmanager.cxx')
-rw-r--r--framework/source/fwi/threadhelp/transactionmanager.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/source/fwi/threadhelp/transactionmanager.cxx b/framework/source/fwi/threadhelp/transactionmanager.cxx
index 21c8fb69bf13..86d5b354a064 100644
--- a/framework/source/fwi/threadhelp/transactionmanager.cxx
+++ b/framework/source/fwi/threadhelp/transactionmanager.cxx
@@ -71,7 +71,7 @@ void TransactionManager::setWorkingMode( EWorkingMode eMode )
// Safe member access.
bool bWaitFor = false;
{
- osl::MutexGuard aAccessGuard(m_aAccessLock);
+ std::unique_lock aAccessGuard(m_aAccessLock);
// Change working mode first!
if (
(m_eWorkingMode == E_INIT && eMode == E_WORK) ||
@@ -137,7 +137,7 @@ void TransactionManager::setWorkingMode( EWorkingMode eMode )
EWorkingMode TransactionManager::getWorkingMode() const
{
// Synchronize access to internal member!
- ::osl::MutexGuard aAccessLock( m_aAccessLock );
+ std::unique_lock aAccessLock( m_aAccessLock );
return m_eWorkingMode;
}
@@ -154,7 +154,7 @@ EWorkingMode TransactionManager::getWorkingMode() const
*//*-*****************************************************************************************************/
void TransactionManager::registerTransaction( EExceptionMode eMode )
{
- ::osl::MutexGuard aAccessGuard( m_aAccessLock );
+ std::unique_lock aAccessGuard( m_aAccessLock );
switch( m_eWorkingMode )
{
case E_INIT:
@@ -201,7 +201,7 @@ void TransactionManager::unregisterTransaction()
{
// This call could not rejected!
// Safe access to internal member.
- ::osl::MutexGuard aAccessGuard( m_aAccessLock );
+ std::unique_lock aAccessGuard( m_aAccessLock );
// Deregister this transaction.
// If it was the last one ... open gate to enable changing of working mode!