Changeset 287 in pacpusframework for trunk/include/Pacpus
- Timestamp:
- Mar 26, 2014, 8:59:09 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/Pacpus/kernel/InputOutputInterface.h
r273 r287 8 8 #include <QByteArray> 9 9 #include <QCoreApplication> 10 #include <QThread> 10 11 #include <typeinfo> 11 12 12 namespace pacpus { 13 namespace pacpus 14 { 13 15 14 16 template <typename T, class C> … … 28 30 //typedef boost::function<void (C*, T const&)> process_const_data_function_type; 29 31 32 void initialize() 33 { 34 // each input slot will be processed by a separate thread 35 moveToThread(&mProcessingThread); 36 mProcessingThread.start(); 37 } 38 30 39 InputInterface(QString name, C* component, process_data_function_type_with_event processingMethod) 31 40 : InputInterfaceBase(name, component, component) 32 41 { 33 42 mProcessingMethod.fe = processingMethod; 43 initialize(); 34 44 } 35 45 … … 38 48 { 39 49 mProcessingMethod.f = processingMethod; 50 initialize(); 40 51 } 41 52 … … 44 55 { 45 56 mProcessingMethod.cfe = processingMethod; 57 initialize(); 46 58 } 47 59 … … 50 62 { 51 63 mProcessingMethod.cf = processingMethod; 64 initialize(); 52 65 } 53 66 … … 202 215 203 216 ProcessingMethod mProcessingMethod; 217 QThread mProcessingThread; 204 218 }; 205 219 … … 249 263 it->getPriority() 250 264 ); 251 LOG_TRACE("Sender: " << it->getInterface()->getSignature());265 LOG_TRACE("Sender: " << getSignature()); 252 266 } 253 267 }
Note:
See TracChangeset
for help on using the changeset viewer.