doc and brush

This commit is contained in:
2023-07-04 13:08:37 +03:00
parent 9e78546b7e
commit 35aadb0e78
10 changed files with 106 additions and 69 deletions

View File

@@ -21,6 +21,7 @@
#include "piconditionvar.h"
#include "piincludes_p.h"
#include "piliterals.h"
#ifdef PIP_TIMER_RT
# include <csignal>
#endif
@@ -242,7 +243,7 @@ private:
_PITimerImp_Thread::_PITimerImp_Thread() {
thread_.setName("__S__PITimerImp_Thread::thread");
thread_.setName("__S__PITimerImp_Thread::thread"_a);
wait_dt = 1000;
wait_dd = 2000;
wait_tick = 1000;
@@ -259,7 +260,7 @@ void _PITimerImp_Thread::prepareStart(double interval_ms) {
}
st_inc = PISystemTime::fromMilliseconds(interval_ms);
st_odt = st_inc * 5;
if (st_odt.toSeconds() < 1.) st_odt = PISystemTime::fromSeconds(1.);
if (st_odt.toSeconds() < 1.) st_odt = 1_s;
if (deferred_) {
if (!deferred_mode) st_time = PISystemTime::current(true) + PISystemTime::fromMilliseconds(deferred_delay);
st_time -= st_inc;
@@ -452,7 +453,7 @@ _PITimerImp_Pool::_PITimerImp_Pool(): _PITimerImp_Thread() {
_PITimerImp_Pool::Pool::Pool(): PIThread() {
setName("__S__PITimerImp_Pool::Pool");
setName("__S__PITimerImp_Pool::Pool"_a);
needLockRun(true);
#ifndef FREERTOS
timers.reserve(64);