mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
refs #402, post merge feedback by MS
This commit is contained in:
@@ -32,8 +32,8 @@ namespace BlackMisc
|
||||
|
||||
void CThreadedReader::requestStop()
|
||||
{
|
||||
setFinished();
|
||||
QWriteLocker(&this->m_lock);
|
||||
this->m_stopped = true;
|
||||
this->m_updateTimer->stop();
|
||||
}
|
||||
|
||||
@@ -47,13 +47,6 @@ namespace BlackMisc
|
||||
// cleanup code would go here
|
||||
}
|
||||
|
||||
bool CThreadedReader::isFinished() const
|
||||
{
|
||||
if (CContinuousWorker::isFinished()) { return true; }
|
||||
QReadLocker(&this->m_lock);
|
||||
return this->m_stopped;
|
||||
}
|
||||
|
||||
void CThreadedReader::setInterval(int updatePeriodMs)
|
||||
{
|
||||
Q_ASSERT(this->m_updateTimer);
|
||||
|
||||
Reference in New Issue
Block a user