#include "testshmsend.h" testshmsend::testshmsend() { mpa = new iv::modulecommext::modulecommmsg(); 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); } }