diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-12-23 17:48:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-12-27 17:04:29 +0100 |
commit | a5e9a6ddda92f8f5c80d2a10ab048f87309d5755 (patch) | |
tree | 884aae8700021c7f55896e46cc01d465aed3a67f /ucb/source/ucp/webdav-curl/PropfindCache.cxx | |
parent | bc346f7add9cad9016466788be09a66c722f9a91 (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/source/ucp/webdav-curl/PropfindCache.cxx')
-rw-r--r-- | ucb/source/ucp/webdav-curl/PropfindCache.cxx | 6 |
1 files changed, 3 insertions, 3 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 ); |