mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 17:41:45 +00:00
FairMQ: Fix missing ofi completion events
This commit is contained in:
committed by
Mohammad Al-Turany
parent
144aa912d7
commit
c5072ea425
@@ -45,13 +45,17 @@ class PairLeft : public FairMQDevice
|
||||
|
||||
// Simple message with short text data
|
||||
auto msg5{NewSimpleMessageFor("data", 0, "testdata1234")};
|
||||
LOG(info) << "Will send msg5";
|
||||
if (Send(msg5, "data") >= 0) counter++;
|
||||
LOG(info) << "Sent msg5";
|
||||
if (counter == 5) LOG(info) << "Simple message with short text data successfull";
|
||||
auto msg6{NewMessageFor("data", 0)};
|
||||
auto ret = Receive(msg6, "data");
|
||||
if (ret > 0) {
|
||||
auto content = std::string{static_cast<char*>(msg6->GetData()), msg6->GetSize()};
|
||||
LOG(info) << ret << ", " << msg6->GetSize() << ", '" << content << "'";
|
||||
if (msg6->GetSize() == ret && content == "testdata1234") counter++;
|
||||
}
|
||||
if (counter == 6) LOG(info) << "Simple message with short text data successfull";
|
||||
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
|
||||
assert(counter == 5);
|
||||
assert(counter == 6);
|
||||
};
|
||||
};
|
||||
|
||||
|
@@ -52,9 +52,12 @@ class PairRight : public FairMQDevice
|
||||
LOG(info) << ret << ", " << msg5->GetSize() << ", '" << content << "'";
|
||||
if (msg5->GetSize() == ret && content == "testdata1234") counter++;
|
||||
}
|
||||
if (counter == 5) LOG(info) << "Simple message with short text data successfull";
|
||||
auto msg6{NewSimpleMessageFor("data", 0, "testdata1234")};
|
||||
if (Send(msg6, "data") >= 0) counter++;
|
||||
if (counter == 6) LOG(info) << "Simple message with short text data successfull";
|
||||
|
||||
if (counter == 5) LOG(info) << "PAIR test successfull.";
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
|
||||
if (counter == 6) LOG(info) << "PAIR test successfull.";
|
||||
};
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user