Changeset 291 in pacpusframework for trunk/examples/ProducerConsumerExample/ConsumerExample.cpp
- Timestamp:
- Mar 27, 2014, 12:53:43 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/ProducerConsumerExample/ConsumerExample.cpp
r288 r291 17 17 LOG_TRACE("constructor(" << name << ")"); 18 18 19 LOG_INFO("Thread " << thread.currentThread());20 LOG_INFO("Current Thread " << QThread::currentThread());21 22 namespace po = boost::program_options;23 19 addParameters() 24 ("output-path", po::value<std::string>(&mOutputFileName)->default_value("consumer.txt"), "set output file path")20 ("output-path", value<std::string>(&mOutputFileName)->default_value("consumer.txt"), "set output file path") 25 21 ; 26 22 } … … 55 51 { 56 52 LOG_TRACE(Q_FUNC_INFO); 57 moveToThread(&thread);58 53 m_counter = 0; 59 54 … … 63 58 } 64 59 65 thread.start();66 60 setState(MONITOR_OK); 67 61 LOG_INFO("started component '" << getName() << "'"); … … 72 66 LOG_TRACE(Q_FUNC_INFO); 73 67 74 QMetaObject::invokeMethod(&thread, "quit");75 68 m_file.close(); 76 69 setState(STOPPED); … … 97 90 98 91 PacpusTypedEvent<int> intEvent(TYPED_EVENT, 2); 99 //PacpusTypedEvent<QImage> imageEvent = intEvent; 92 //PacpusTypedEvent<QImage> imageEvent = intEvent; // should not compile 100 93 }
Note:
See TracChangeset
for help on using the changeset viewer.