| 1234567891011121314151617181920 |
- #include "testshmsend.h"
- testshmsend::testshmsend()
- {
- mpa = new iv::modulecommext::modulecommmsg<iv::testmodulecommext>();
- mpa->RegisterSend("test",1000,1,iv::modulecomm::ModuleComm_SHAREMEM);
- }
- void testshmsend::run()
- {
- while (!QThread::isInterruptionRequested()) {
- iv::testmodulecommext xmsg;
- xmsg.set_a(1);
- xmsg.set_b(2);
- xmsg.set_time(QDateTime::currentMSecsSinceEpoch());
- mpa->ModuleSendMsg(xmsg);
- msleep(1000);
- }
- }
|