git-svn-id: svn://db.shs.com.ru/pip@448 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -71,7 +71,7 @@ void PISingleApplication::begin() {
|
||||
}
|
||||
piMSleep(100);
|
||||
}
|
||||
//piCoutObj << "started" << first << shm->size();
|
||||
piCoutObj << "started" << first << shm->size();
|
||||
readed.reserve(shm->size());
|
||||
started = true;
|
||||
}
|
||||
@@ -81,7 +81,7 @@ void PISingleApplication::run() {
|
||||
if (!first) return;
|
||||
++sacnt;
|
||||
shm->write(&sacnt, 4);
|
||||
//piCoutObj << "write" << sacnt;
|
||||
piCoutObj << "write" << sacnt;
|
||||
readed = shm->readAll();
|
||||
int t(0), nm(0);
|
||||
readed >> t >> nm;
|
||||
@@ -90,7 +90,7 @@ void PISingleApplication::run() {
|
||||
readed >> msg;
|
||||
if (!msg.isEmpty()) {
|
||||
messageReceived(msg);
|
||||
//piCoutObj << "message" << msg;
|
||||
piCoutObj << "message" << msg;
|
||||
}
|
||||
int wi[2] = {sacnt, 0};
|
||||
shm->write(wi, 8);
|
||||
|
||||
Reference in New Issue
Block a user