git-svn-id: svn://db.shs.com.ru/pip@703 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2019-02-06 21:38:46 +00:00
parent 91b5596329
commit 7543d6e1c1
2 changed files with 5 additions and 3 deletions

View File

@@ -58,7 +58,7 @@ PIDiagnostics::State::State() {
PIDiagnostics::PIDiagnostics(bool start_): PITimer(PITimer::Pool) {
PIDiagnostics::PIDiagnostics(bool start_): PITimer(/*PITimer::Pool*/) {
disconn_ = 0.;
setInterval(100);
reset();

View File

@@ -370,14 +370,16 @@ _PITimerImp_Pool::Pool::Pool(): PIThread() {
needLockRun(true);
#ifndef FREERTOS
timers.reserve(64);
#endif
start(PIP_MIN_MSLEEP*5);
#else
start(PIP_MIN_MSLEEP);
#endif
}
_PITimerImp_Pool::Pool::~Pool() {
stop();
if (!waitForFinish(100))
if (!waitForFinish(500))
terminate();
unlock();
timers.clear();