LibreOffice Module ucb (master) 1
|
#include <SerfLockStore.hxx>
Public Member Functions | |
SerfLockStore () | |
~SerfLockStore () | |
OUString const * | getLockTokenForURI (OUString const &rURI, css::ucb::Lock const *pLock) |
void | addLock (const OUString &rURI, css::ucb::Lock const &rLock, const OUString &sToken, rtl::Reference< CurlSession > const &xSession, sal_Int32 nLastChanceToSendRefreshRequest) |
void | removeLock (const OUString &rURI) |
void | refreshLocks () |
Private Member Functions | |
void | removeLockImpl (std::unique_lock< std::mutex > &rGuard, const OUString &rURI) |
void | startTicker () |
void | stopTicker (std::unique_lock< std::mutex > &rGuard) |
Private Attributes | |
std::mutex | m_aMutex |
rtl::Reference< TickerThread > | m_pTickerThread |
LockInfoMap | m_aLockInfoMap |
Definition at line 60 of file SerfLockStore.hxx.
SerfLockStore::SerfLockStore | ( | ) |
Definition at line 83 of file SerfLockStore.cxx.
SerfLockStore::~SerfLockStore | ( | ) |
Definition at line 88 of file SerfLockStore.cxx.
References m_aLockInfoMap, m_aMutex, SAL_WARN_IF, and stopTicker().
void SerfLockStore::addLock | ( | const OUString & | rURI, |
css::ucb::Lock const & | rLock, | ||
const OUString & | sToken, | ||
rtl::Reference< CurlSession > const & | xSession, | ||
sal_Int32 | nLastChanceToSendRefreshRequest | ||
) |
Definition at line 171 of file SerfLockStore.cxx.
References m_aLockInfoMap, m_aMutex, and startTicker().
OUString const * SerfLockStore::getLockTokenForURI | ( | OUString const & | rURI, |
css::ucb::Lock const * | pLock | ||
) |
Definition at line 137 of file SerfLockStore.cxx.
References m_aLockInfoMap, and m_aMutex.
void SerfLockStore::refreshLocks | ( | ) |
Definition at line 208 of file SerfLockStore.cxx.
References m_aLockInfoMap, m_aMutex, http_dav_ucp::LockInfo::m_nLastChanceToSendRefreshRequest, http_dav_ucp::LockInfo::m_xSession, and removeLockImpl().
Referenced by http_dav_ucp::TickerThread::execute().
void SerfLockStore::removeLock | ( | const OUString & | rURI | ) |
Definition at line 189 of file SerfLockStore.cxx.
References m_aMutex, and removeLockImpl().
|
private |
Definition at line 196 of file SerfLockStore.cxx.
References m_aLockInfoMap, and stopTicker().
Referenced by refreshLocks(), and removeLock().
|
private |
Definition at line 104 of file SerfLockStore.cxx.
References m_aMutex, and m_pTickerThread.
Referenced by addLock().
|
private |
Definition at line 116 of file SerfLockStore.cxx.
References m_pTickerThread.
Referenced by removeLockImpl(), and ~SerfLockStore().
|
private |
Definition at line 64 of file SerfLockStore.hxx.
Referenced by addLock(), getLockTokenForURI(), refreshLocks(), removeLockImpl(), and ~SerfLockStore().
|
private |
Definition at line 62 of file SerfLockStore.hxx.
Referenced by addLock(), getLockTokenForURI(), refreshLocks(), removeLock(), startTicker(), and ~SerfLockStore().
|
private |
Definition at line 63 of file SerfLockStore.hxx.
Referenced by startTicker(), and stopTicker().