refs #712, improved readers

* only trigger read when network interface is available
* do not trigger all reads at same time but slightly shifted
* renamed to hasReceivedOkReply()
This commit is contained in:
Klaus Basan
2016-07-24 01:36:09 +02:00
parent 31b03fe2e1
commit 0357dbde8f
9 changed files with 102 additions and 42 deletions

View File

@@ -73,6 +73,12 @@ namespace BlackCore
this->initialize();
}
bool CThreadedReader::isNetworkAvailable() const
{
static const bool nw = CNetworkUtils::hasConnectedInterface();
return nw;
}
void CThreadedReader::gracefulShutdown()
{
// if not in main thread stop, otherwise it makes no sense to abandon