summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-08-02 18:59:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-08-02 21:44:05 +0200
commite01df5ad80cd8f34a781631da6f24f38bce613c4 (patch)
treea337f2fdc2467093c81a902dfd13d060e6ca7df3 /svtools
parenta07351e8181353c0c0b6df5d2ccbad4615c6706b (diff)
osl::Mutex->std::mutex in SvtMatchContext_Impl
Change-Id: Id9612600b3514df10cd5311cf60b6704596ed118 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119895 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/inettbc.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/svtools/source/control/inettbc.cxx b/svtools/source/control/inettbc.cxx
index 5f8cf08eb72f..61940085eff1 100644
--- a/svtools/source/control/inettbc.cxx
+++ b/svtools/source/control/inettbc.cxx
@@ -52,6 +52,7 @@
#include <svtools/asynclink.hxx>
#include <svtools/urlfilter.hxx>
+#include <mutex>
#include <vector>
#include <algorithm>
@@ -91,7 +92,7 @@ class SvtMatchContext_Impl: public salhelper::Thread
bool bOnlyDirectories;
bool bNoSelection;
- osl::Mutex mutex_;
+ std::mutex mutex_;
bool stopped_;
css::uno::Reference< css::ucb::XCommandProcessor > processor_;
sal_Int32 commandId_;
@@ -154,7 +155,7 @@ void SvtMatchContext_Impl::Stop()
css::uno::Reference< css::ucb::XCommandProcessor > proc;
sal_Int32 id(0);
{
- osl::MutexGuard g(mutex_);
+ std::lock_guard g(mutex_);
if (!stopped_) {
stopped_ = true;
proc = processor_;
@@ -184,7 +185,7 @@ IMPL_LINK_NOARG( SvtMatchContext_Impl, Select_Impl, void*, void )
{
// avoid recursion through cancel button
{
- osl::MutexGuard g(mutex_);
+ std::lock_guard g(mutex_);
if (stopped_) {
// Completion was stopped, no display:
return;
@@ -402,7 +403,7 @@ void SvtMatchContext_Impl::doExecute()
::osl::MutexGuard aGuard( theSvtMatchContextMutex::get() );
{
// have we been stopped while we were waiting for the mutex?
- osl::MutexGuard g(mutex_);
+ std::lock_guard g(mutex_);
if (stopped_) {
return;
}
@@ -477,7 +478,7 @@ void SvtMatchContext_Impl::doExecute()
sal_Int32 id = proc->createCommandIdentifier();
try {
{
- osl::MutexGuard g(mutex_);
+ std::lock_guard g(mutex_);
processor_ = proc;
commandId_ = id;
}
@@ -502,7 +503,7 @@ void SvtMatchContext_Impl::doExecute()
proc2->releaseCommandIdentifier(id);
}
{
- osl::MutexGuard g(mutex_);
+ std::lock_guard g(mutex_);
processor_.clear();
// At least the neon-based WebDAV UCP does not
// properly support aborting commands, so return