summaryrefslogtreecommitdiff
path: root/io
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-12-18 22:11:49 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-12-20 08:32:43 +0100
commit86aa6ad680998d2e854b964f63b51a2c7d98251a (patch)
tree54b6739fa7404a48d2508835432743870f5d8df5 /io
parent5f4a580ea13d34d7cc0ece0099dd2003612ca635 (diff)
osl::Mutex->std::mutex in PipeAcceptor
Change-Id: Iafe6c0238d5a00bbf3c586b36c10ea7793f466b3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127122 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'io')
-rw-r--r--io/source/acceptor/acc_pipe.cxx4
-rw-r--r--io/source/acceptor/acceptor.hxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/io/source/acceptor/acc_pipe.cxx b/io/source/acceptor/acc_pipe.cxx
index 62f90993dca7..d95ea998e6c1 100644
--- a/io/source/acceptor/acc_pipe.cxx
+++ b/io/source/acceptor/acc_pipe.cxx
@@ -144,7 +144,7 @@ namespace io_acceptor
{
Pipe pipe;
{
- MutexGuard guard( m_mutex );
+ std::unique_lock guard( m_mutex );
pipe = m_pipe;
}
if( ! pipe.is() )
@@ -177,7 +177,7 @@ namespace io_acceptor
m_bClosed = true;
Pipe pipe;
{
- MutexGuard guard( m_mutex );
+ std::unique_lock guard( m_mutex );
pipe = m_pipe;
m_pipe.clear();
}
diff --git a/io/source/acceptor/acceptor.hxx b/io/source/acceptor/acceptor.hxx
index 0ebe00c9e372..9214a10b7509 100644
--- a/io/source/acceptor/acceptor.hxx
+++ b/io/source/acceptor/acceptor.hxx
@@ -21,7 +21,7 @@
#include <osl/pipe.hxx>
#include <osl/socket.hxx>
-#include <osl/mutex.hxx>
+#include <mutex>
#include <com/sun/star/uno/Reference.hxx>
@@ -39,7 +39,7 @@ namespace io_acceptor {
void stopAccepting();
- ::osl::Mutex m_mutex;
+ std::mutex m_mutex;
::osl::Pipe m_pipe;
OUString m_sPipeName;
OUString m_sConnectionDescription;