git-svn-id: svn://db.shs.com.ru/pip@710 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user