mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +08:00
refs #452, allow to "shutdown" threaded reader
This commit is contained in:
committed by
Mathew Sutcliffe
parent
567cead20d
commit
fc2982c7c3
@@ -34,6 +34,12 @@ namespace BlackMisc
|
||||
QMetaObject::invokeMethod(m_updateTimer, "stop");
|
||||
}
|
||||
|
||||
void CThreadedReader::gracefulShutdown()
|
||||
{
|
||||
this->m_shutdown = true;
|
||||
this->requestStop();
|
||||
}
|
||||
|
||||
CThreadedReader::~CThreadedReader()
|
||||
{
|
||||
cleanup();
|
||||
|
||||
Reference in New Issue
Block a user