Ignore:
Timestamp:
Aug 1, 2013, 6:30:31 PM (11 years ago)
Author:
Marek Kurdej
Message:

Major: changed plugins section name to plugings. Parameters section will be used for something else.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0-beta1/examples/ProducerConsumerExample/ConsumerExample.cpp

    r163 r165  
    5252    LOG_TRACE(Q_FUNC_INFO);
    5353    moveToThread(&thread);
     54    m_counter = 0;
    5455   
    55     m_counter = 0;
    56     static const char * outputFileName = "test2.txt";
     56    static const char * outputFileName = "consumer.txt";
    5757    m_file.open(outputFileName, std::ios_base::out | std::ios_base::app);
    5858    if (!m_file.is_open()) {
     
    7777void ConsumerExample::process(const QImage& matrix)
    7878{
    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;
    8180
    82     // a process
    83     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
    8786
    8887    setState(MONITOR_OK);
Note: See TracChangeset for help on using the changeset viewer.