refs #452, allow to "shutdown" threaded reader

This commit is contained in:
Klaus Basan
2015-09-23 15:02:32 +02:00
committed by Mathew Sutcliffe
parent 567cead20d
commit fc2982c7c3
2 changed files with 12 additions and 1 deletions

View File

@@ -34,6 +34,12 @@ namespace BlackMisc
QMetaObject::invokeMethod(m_updateTimer, "stop");
}
void CThreadedReader::gracefulShutdown()
{
this->m_shutdown = true;
this->requestStop();
}
CThreadedReader::~CThreadedReader()
{
cleanup();