From 0fe3953f825a2051b7d8d0cf70ecbe588ea43e79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=8B=D1=87=D0=BA=D0=BE=D0=B2=20=D0=90=D0=BD=D0=B4?= =?UTF-8?q?=D1=80=D0=B5=D0=B9?= Date: Thu, 7 Feb 2019 18:42:43 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/pip@722 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5 --- src_main/thread/pitimer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src_main/thread/pitimer.cpp b/src_main/thread/pitimer.cpp index 40a7040f..0611649f 100755 --- a/src_main/thread/pitimer.cpp +++ b/src_main/thread/pitimer.cpp @@ -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; }