Example #1
0
  void getElementAndProcess () {
    auto element = buffer_->popFront ();
    if (element) {
      // TODO: Should we pass along the boost::optional
      processBufferElement (*element);
//#ifndef NDEBUG
//      BOOST_LOG_TRIVIAL (info) << "Processing, size " << buffer_->getSize ();
//#endif
    }
  }
 void getElementAndProcess() {
     Type element = buffer_->getFront();
     if(element) {
         processBufferElement(element);
         if (timer_->time()) {
             std::stringstream ss;
             ss << "Processor " << id_ << ", " << description_ <<
                     " buffer size: " << buffer_->getSize() << "." << std::endl;
             Logger::log(Logger::INFO, ss.str());
         }
     }
 }