summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-12-23 17:48:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-12-27 17:04:29 +0100
commita5e9a6ddda92f8f5c80d2a10ab048f87309d5755 (patch)
tree884aae8700021c7f55896e46cc01d465aed3a67f /ucb
parentbc346f7add9cad9016466788be09a66c722f9a91 (diff)
osl::Mutex->std::mutex in PropertyNamesCache
Change-Id: I9af4098a30383ce695147bf7e1442769b98f6fb1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127588 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/webdav-curl/PropfindCache.cxx6
-rw-r--r--ucb/source/ucp/webdav-curl/PropfindCache.hxx4
2 files changed, 5 insertions, 5 deletions
diff --git a/ucb/source/ucp/webdav-curl/PropfindCache.cxx b/ucb/source/ucp/webdav-curl/PropfindCache.cxx
index 4bf9bf933f0b..7196bd791d9c 100644
--- a/ucb/source/ucp/webdav-curl/PropfindCache.cxx
+++ b/ucb/source/ucp/webdav-curl/PropfindCache.cxx
@@ -42,7 +42,7 @@ namespace http_dav_ucp
bool PropertyNamesCache::getCachedPropertyNames( const OUString& rURL, PropertyNames& rCacheElement )
{
// search the URL in the static map
- osl::MutexGuard aGuard( m_aMutex );
+ std::unique_lock aGuard( m_aMutex );
PropNameCache::const_iterator it;
it = m_aTheCache.find( rURL );
if ( it == m_aTheCache.end() )
@@ -66,7 +66,7 @@ namespace http_dav_ucp
void PropertyNamesCache::removeCachedPropertyNames( const OUString& rURL )
{
- osl::MutexGuard aGuard( m_aMutex );
+ std::unique_lock aGuard( m_aMutex );
PropNameCache::const_iterator it;
it = m_aTheCache.find( rURL );
if ( it != m_aTheCache.end() )
@@ -77,7 +77,7 @@ namespace http_dav_ucp
void PropertyNamesCache::addCachePropertyNames( PropertyNames& rCacheElement, const sal_uInt32 nLifeTime )
{
- osl::MutexGuard aGuard( m_aMutex );
+ std::unique_lock aGuard( m_aMutex );
OUString aURL( rCacheElement.getURL() );
TimeValue t1;
osl_getSystemTime( &t1 );
diff --git a/ucb/source/ucp/webdav-curl/PropfindCache.hxx b/ucb/source/ucp/webdav-curl/PropfindCache.hxx
index 4f7b66563818..1f4d68afd688 100644
--- a/ucb/source/ucp/webdav-curl/PropfindCache.hxx
+++ b/ucb/source/ucp/webdav-curl/PropfindCache.hxx
@@ -12,7 +12,7 @@
#include <sal/types.h>
#include <rtl/ustring.hxx>
-#include <osl/mutex.hxx>
+#include <mutex>
#include <list>
#include <map>
#include <vector>
@@ -63,7 +63,7 @@ namespace http_dav_ucp
class PropertyNamesCache
{
PropNameCache m_aTheCache;
- osl::Mutex m_aMutex;
+ std::mutex m_aMutex;
public:
PropertyNamesCache();