Changeset 165 in pacpusframework for branches/2.0-beta1/examples/ProducerConsumerExample/ConsumerExample.cpp
- Timestamp:
- Aug 1, 2013, 6:30:31 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0-beta1/examples/ProducerConsumerExample/ConsumerExample.cpp
r163 r165 52 52 LOG_TRACE(Q_FUNC_INFO); 53 53 moveToThread(&thread); 54 m_counter = 0; 54 55 55 m_counter = 0; 56 static const char * outputFileName = "test2.txt"; 56 static const char * outputFileName = "consumer.txt"; 57 57 m_file.open(outputFileName, std::ios_base::out | std::ios_base::app); 58 58 if (!m_file.is_open()) { … … 77 77 void ConsumerExample::process(const QImage& matrix) 78 78 { 79 LOG_INFO("Size " << matrix.size().width()<< " x " << matrix.size().height()); 80 unsigned int k = 0; 79 m_file << ++m_counter << " " << road_time() << "\n" << std::flush; 81 80 82 // a process83 for (int i = 0; i < 100; ++i) {84 ++k;85 } 86 m_file << ++m_counter << " " << road_time() << "\n";81 LOG_INFO("Received QIMage: " 82 << "size = " << matrix.size().width()<< " x " << matrix.size().height() 83 ); 84 85 // DO PROCESSING 87 86 88 87 setState(MONITOR_OK);
Note:
See TracChangeset
for help on using the changeset viewer.