summaryrefslogtreecommitdiff
path: root/stoc
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-08-01 18:59:31 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-08-01 22:59:38 +0200
commit7c38362dbe1922c9825dffb463072030948d406b (patch)
tree3826dccf799a47e25790841478c29c618b0b3d41 /stoc
parent983d0898b25f195258bb4934a62ae196d436fb0a (diff)
osl::Mutex->std::mutex in InteractionRequest::RetryContinuation
Change-Id: I36a238f9b61471266b8fbc81c8e159a0e36182da Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119832 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'stoc')
-rw-r--r--stoc/source/javavm/interact.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/stoc/source/javavm/interact.cxx b/stoc/source/javavm/interact.cxx
index 58be91615d2f..45fba8aab597 100644
--- a/stoc/source/javavm/interact.cxx
+++ b/stoc/source/javavm/interact.cxx
@@ -23,7 +23,7 @@
#include <com/sun/star/task/XInteractionAbort.hpp>
#include <com/sun/star/task/XInteractionRetry.hpp>
#include <cppuhelper/implbase.hxx>
-#include <osl/mutex.hxx>
+#include <mutex>
namespace com::sun::star::task { class XInteractionContinuation; }
@@ -62,19 +62,19 @@ public:
private:
virtual ~RetryContinuation() override {}
- mutable osl::Mutex m_aMutex;
+ mutable std::mutex m_aMutex;
bool m_bSelected;
};
void SAL_CALL InteractionRequest::RetryContinuation::select()
{
- osl::MutexGuard aGuard(m_aMutex);
+ std::lock_guard aGuard(m_aMutex);
m_bSelected = true;
}
bool InteractionRequest::RetryContinuation::isSelected() const
{
- osl::MutexGuard aGuard(m_aMutex);
+ std::lock_guard aGuard(m_aMutex);
return m_bSelected;
}