mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +08:00
refs #476, improvements on gracefulShutdown
* gracefulShutdown in metar reader and other readers * made m_shutdown thread safe * Demoted log level for reader * helper function finished or shutdown
This commit is contained in:
committed by
Mathew Sutcliffe
parent
54448fd2b2
commit
4d3d9fa6be
@@ -19,6 +19,11 @@ namespace BlackMisc
|
||||
m_updateTimer(new QTimer(this))
|
||||
{ }
|
||||
|
||||
bool CThreadedReader::isFinishedOrShutdown() const
|
||||
{
|
||||
return m_shutdown || isFinished();
|
||||
}
|
||||
|
||||
QDateTime CThreadedReader::getUpdateTimestamp() const
|
||||
{
|
||||
QReadLocker lock(&this->m_lock);
|
||||
|
||||
Reference in New Issue
Block a user