git-svn-id: svn://db.shs.com.ru/pip@703 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -58,7 +58,7 @@ PIDiagnostics::State::State() {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
PIDiagnostics::PIDiagnostics(bool start_): PITimer(PITimer::Pool) {
|
PIDiagnostics::PIDiagnostics(bool start_): PITimer(/*PITimer::Pool*/) {
|
||||||
disconn_ = 0.;
|
disconn_ = 0.;
|
||||||
setInterval(100);
|
setInterval(100);
|
||||||
reset();
|
reset();
|
||||||
|
|||||||
@@ -370,14 +370,16 @@ _PITimerImp_Pool::Pool::Pool(): PIThread() {
|
|||||||
needLockRun(true);
|
needLockRun(true);
|
||||||
#ifndef FREERTOS
|
#ifndef FREERTOS
|
||||||
timers.reserve(64);
|
timers.reserve(64);
|
||||||
#endif
|
start(PIP_MIN_MSLEEP*5);
|
||||||
|
#else
|
||||||
start(PIP_MIN_MSLEEP);
|
start(PIP_MIN_MSLEEP);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
_PITimerImp_Pool::Pool::~Pool() {
|
_PITimerImp_Pool::Pool::~Pool() {
|
||||||
stop();
|
stop();
|
||||||
if (!waitForFinish(100))
|
if (!waitForFinish(500))
|
||||||
terminate();
|
terminate();
|
||||||
unlock();
|
unlock();
|
||||||
timers.clear();
|
timers.clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user