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

This commit is contained in:
2019-02-06 22:31:18 +00:00
parent 21719b85e4
commit d7e0f298b2

View File

@@ -164,7 +164,11 @@ void PISystemMonitor::run() {
if (t->isPIObject())
tbid[t->tid()] = t->name();
pitc->unlock();
#ifndef FREERTOS
#ifdef FREERTOS
piForeach (PIThread * t, tv)
if (t->isPIObject())
gatherThread(t->tid());
#else
//piCout << tbid.keys().toType<uint>();
stat.ID = pID_;
#ifndef WINDOWS
@@ -337,8 +341,10 @@ void PISystemMonitor::makeStrings() {
void PISystemMonitor::gatherThread(llong id) {
PISystemMonitor::ThreadStats ts;
ts.id = id;
#ifdef FREERTOS
ts.name = tbid.value(id, "<PIThread>");
#else
ts.name = tbid.value(id, "<non-PIThread>");
#ifndef FREERTOS
#ifndef WINDOWS
PIFile f(PRIVATE->proc_dir + "task/" + PIString::fromNumber(id) + "/stat");
//piCout << f.path();