mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
a little clean up
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
/*
|
||||
/**
|
||||
* FairMQSink.cxx
|
||||
*
|
||||
* Created on: Jan 9, 2013
|
||||
* Author: dklein
|
||||
* @since 2013-01-09
|
||||
* @author D. Klein, A. Rybalchenko
|
||||
*/
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include <boost/thread.hpp>
|
||||
#include <boost/bind.hpp>
|
||||
|
||||
@@ -24,19 +22,10 @@ void FairMQSink::Run()
|
||||
|
||||
boost::thread rateLogger(boost::bind(&FairMQDevice::LogSocketRates, this));
|
||||
|
||||
// Initialize poll set
|
||||
zmq_pollitem_t items[] = {
|
||||
{ *(fPayloadInputs->at(0)->GetSocket()), 0, ZMQ_POLLIN, 0 }
|
||||
};
|
||||
|
||||
while ( fState == RUNNING ) {
|
||||
FairMQMessage msg;
|
||||
|
||||
zmq_poll(items, 1, 100);
|
||||
|
||||
if (items[0].revents & ZMQ_POLLIN) {
|
||||
fPayloadInputs->at(0)->Receive(&msg);
|
||||
}
|
||||
fPayloadInputs->at(0)->Receive(&msg);
|
||||
}
|
||||
|
||||
rateLogger.interrupt();
|
||||
|
Reference in New Issue
Block a user