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

This commit is contained in:
2019-02-07 18:42:43 +00:00
parent 42a4223667
commit 0fe3953f82

View File

@@ -204,11 +204,15 @@ bool _PITimerImp_Thread::startTimer(double interval_ms) {
bool _PITimerImp_Thread::stopTimer(bool wait) {
#ifndef FREERTOS
thread_.stop(true);
#else
thread_.stop();
if (wait)
if (!thread_.waitForFinish(10))
if (thread_.isRunning())
thread_.terminate();
#endif
return true;
}