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