Changeset 200 in pacpusframework for trunk/include/Pacpus/kernel
- Timestamp:
- Oct 28, 2013, 2:39:22 PM (11 years ago)
- Location:
- trunk/include/Pacpus/kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/Pacpus/kernel/InputOutputBase.h
r199 r200 7 7 #include <Pacpus/kernel/PacpusLibConfig.h> 8 8 9 #include <QApplication>10 9 #include <QList> 10 #include <QString> 11 11 #include <QStringList> 12 12 #include <typeinfo> 13 14 class QByteArray; 13 15 14 16 namespace pacpus { -
trunk/include/Pacpus/kernel/InputOutputInterface.h
r199 r200 5 5 #include <Pacpus/kernel/Log.h> 6 6 7 #include <QApplication> 7 8 #include <QByteArray> 8 //#include <QThread>9 #include <QCoreApplication> 9 10 #include <typeinfo> 10 11 … … 54 55 PacpusTypedEvent<T> * typedEvent = dynamic_cast<PacpusTypedEvent<T> *> (event); 55 56 56 LOG_DEBUG("Receiver " << getSignature() << " thread " << QThread::currentThread());57 LOG_DEBUG("Receiver: " << getSignature()); 57 58 58 59 if (typedEvent->timerange() < 500 && readingMode() == TimeBounded) { … … 65 66 66 67 if (road_time() - typedEvent->time() > typedEvent->timerange()) { 67 LOG_DEBUG("Data skip " << this->getSignature());68 LOG_DEBUG("Data skipped, receiver: " << this->getSignature()); 68 69 break; 69 70 } … … 145 146 //QSharedPointer<T> sharedPointer = new T(data); 146 147 147 for (QList<ConnectionBase>::iterator it = connections().begin(); it != connections().end(); ++it) { 148 QApplication::postEvent(it->getInterface(),new PacpusTypedEvent<T>(TYPED_EVENT,data,t,tr),it->getPriority()); // Event is delete by the event loop handler 149 //qDebug() << "sender " << it->getInterface()->getSignature() << " thread " << QThread::currentThread() << " Data & " << &data << " "; 148 for (QList<ConnectionBase>::iterator it = connections().begin(), itend = connections().end(); it != itend; ++it) { 149 // Event is deleted by the event loop handler 150 QApplication::postEvent(it->getInterface(), new PacpusTypedEvent<T>(TYPED_EVENT,data,t,tr),it->getPriority()); 151 //qDebug() << "sender " << it->getInterface()->getSignature() << " Data & " << &data << " "; 150 152 } 151 153 }
Note:
See TracChangeset
for help on using the changeset viewer.