use clang-format for FairMQ

This commit is contained in:
Alexey Rybalchenko
2014-04-10 15:20:48 +02:00
parent e80e6d4269
commit 68d51d8ed5
55 changed files with 1893 additions and 1759 deletions

View File

@@ -19,29 +19,30 @@ FairMQProtoSink::FairMQProtoSink()
void FairMQProtoSink::Run()
{
LOG(INFO) << ">>>>>>> Run <<<<<<<";
LOG(INFO) << ">>>>>>> Run <<<<<<<";
boost::thread rateLogger(boost::bind(&FairMQDevice::LogSocketRates, this));
boost::thread rateLogger(boost::bind(&FairMQDevice::LogSocketRates, this));
while ( fState == RUNNING ) {
FairMQMessage* msg = fTransportFactory->CreateMessage();
while (fState == RUNNING)
{
FairMQMessage* msg = fTransportFactory->CreateMessage();
fPayloadInputs->at(0)->Receive(msg);
fPayloadInputs->at(0)->Receive(msg);
sampler::Payload p;
sampler::Payload p;
p.ParseFromArray(msg->GetData(), msg->GetSize());
p.ParseFromArray(msg->GetData(), msg->GetSize());
// for (int i = 0; i < p.data_size(); ++i) {
// const sampler::Payload::Content& content = p.data(i);
// LOG(INFO) << content.x() << " " << content.y() << " " << content.z() << " " << content.a() << " " << content.b();
// }
// for (int i = 0; i < p.data_size(); ++i) {
// const sampler::Payload::Content& content = p.data(i);
// LOG(INFO) << content.x() << " " << content.y() << " " << content.z() << " " << content.a() << " " << content.b();
// }
delete msg;
}
delete msg;
}
rateLogger.interrupt();
rateLogger.join();
rateLogger.interrupt();
rateLogger.join();
}
FairMQProtoSink::~FairMQProtoSink()