Fixed mutex lock mistakes.

This commit is contained in:
Mathew Sutcliffe
2015-10-03 13:41:46 +01:00
parent 108c6f7db5
commit 32b5081127
2 changed files with 4 additions and 4 deletions

View File

@@ -18,13 +18,13 @@ namespace BlackMisc
QDateTime CThreadedReader::getUpdateTimestamp() const
{
QReadLocker(&this->m_lock);
QReadLocker lock(&this->m_lock);
return this->m_updateTimestamp;
}
void CThreadedReader::setUpdateTimestamp(const QDateTime &updateTimestamp)
{
QWriteLocker(&this->m_lock);
QWriteLocker lock(&this->m_lock);
this->m_updateTimestamp = updateTimestamp;
}