diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-07-17 18:56:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-17 22:16:55 +0200 |
commit | 2f8635fc919906fe8238fa5ef9e77cfe2f23df83 (patch) | |
tree | e566e69760a06507ef2c8cdab7aef7ce20e23ca1 /unotools | |
parent | 5962431c3d380f97f76c31869a1098e3efaa8b43 (diff) |
osl::Mutex->std::mutex in ModeratorsActiveDataSink
Change-Id: If1e4af0d9acf75bd0f2744f134a42c29e41d56f1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119110
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/ucbhelper/ucblockbytes.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/unotools/source/ucbhelper/ucblockbytes.cxx b/unotools/source/ucbhelper/ucblockbytes.cxx index d3e090cae679..4ed6dec1a236 100644 --- a/unotools/source/ucbhelper/ucblockbytes.cxx +++ b/unotools/source/ucbhelper/ucblockbytes.cxx @@ -57,6 +57,7 @@ #include <comphelper/storagehelper.hxx> #include <ucbhelper/content.hxx> +#include <mutex> using namespace ::com::sun::star::uno; using namespace ::com::sun::star::io; @@ -333,13 +334,13 @@ public: virtual Reference<XInputStream> SAL_CALL getInputStream() override { - osl::MutexGuard aGuard(m_aMutex); + std::lock_guard aGuard(m_aMutex); return m_xStream; } private: Moderator& m_aModerator; - osl::Mutex m_aMutex; + std::mutex m_aMutex; Reference<XInputStream> m_xStream; }; @@ -357,7 +358,7 @@ ModeratorsActiveDataSink::setInputStream ( ) { m_aModerator.setInputStream(rxInputStream); - osl::MutexGuard aGuard(m_aMutex); + std::lock_guard aGuard(m_aMutex); m_xStream = rxInputStream; } |