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

This commit is contained in:
2019-02-06 22:37:32 +00:00
parent d7e0f298b2
commit 4ceada9d0c
2 changed files with 1 additions and 6 deletions

View File

@@ -56,7 +56,6 @@ PRIVATE_DEFINITION_END(PISystemMonitor)
PISystemMonitor::PISystemMonitor(): PIThread() {
self_ = false;
pID_ = cycle = 0;
cpu_count = PISystemInfo::instance()->processorsCount;
#ifndef FREERTOS
@@ -90,7 +89,6 @@ PISystemMonitor::ProcessStats::ProcessStats() {
#ifndef FREERTOS
bool PISystemMonitor::startOnProcess(int pID, int interval_ms) {
stop();
self_ = false;
pID_ = pID;
cycle = -1;
#ifndef WINDOWS
@@ -118,12 +116,10 @@ bool PISystemMonitor::startOnProcess(int pID, int interval_ms) {
bool PISystemMonitor::startOnSelf(int interval_ms) {
#ifndef FREERTOS
bool ret = startOnProcess(PIProcess::currentPID(), interval_ms);
#else
self_ = false;
cycle = -1;
#else
bool ret = start(interval_ms);
#endif
self_ = true;
return ret;
}