mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
use clang-format for FairMQ
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user