Merge branch 'thread' of https://git.shs.tools/SHS/pip into thread

This commit is contained in:
Бычков Андрей
2022-11-10 19:01:52 +03:00

View File

@@ -204,8 +204,8 @@ public:
virtual ~_PITimerImp_RT(); virtual ~_PITimerImp_RT();
protected: protected:
private: private:
virtual bool startTimer(double interval_ms); bool startTimer(double interval_ms) override;
virtual bool stopTimer(bool wait); bool stopTimer() override;
int ti; int ti;
_PITimerImp_RT_Private_ * priv; _PITimerImp_RT_Private_ * priv;
@@ -399,7 +399,7 @@ _PITimerImp_RT::_PITimerImp_RT() {
_PITimerImp_RT::~_PITimerImp_RT() { _PITimerImp_RT::~_PITimerImp_RT() {
stop(true); stop();
delete priv; delete priv;
} }
@@ -432,7 +432,7 @@ bool _PITimerImp_RT::startTimer(double interval_ms) {
} }
bool _PITimerImp_RT::stopTimer(bool wait) { bool _PITimerImp_RT::stopTimer() {
if (ti < 0) return true; if (ti < 0) return true;
timer_delete(priv->tt); timer_delete(priv->tt);
ti = -1; ti = -1;