mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 16:46:47 +00:00
Implement linger for ofi
This reduces test runtime significantly for most transports
This commit is contained in:
parent
a1b7efa2f4
commit
b45e4da2a9
|
@ -62,6 +62,9 @@ auto Context::InitThreadPool(int numberIoThreads) -> void
|
||||||
|
|
||||||
auto Context::Reset() -> void
|
auto Context::Reset() -> void
|
||||||
{
|
{
|
||||||
|
// TODO "Linger", rethink this
|
||||||
|
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
|
||||||
|
|
||||||
fIoContext.stop();
|
fIoContext.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -57,6 +57,7 @@ class PairLeft : public FairMQDevice
|
||||||
if (counter == 6) LOG(info) << "Simple message with short text data successfull";
|
if (counter == 6) LOG(info) << "Simple message with short text data successfull";
|
||||||
|
|
||||||
assert(counter == 6);
|
assert(counter == 6);
|
||||||
|
if (counter == 6) LOG(info) << "PAIR test successfull.";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -55,9 +55,6 @@ class PairRight : public FairMQDevice
|
||||||
auto msg6(NewSimpleMessageFor("data", 0, "testdata1234"));
|
auto msg6(NewSimpleMessageFor("data", 0, "testdata1234"));
|
||||||
if (Send(msg6, "data") >= 0) counter++;
|
if (Send(msg6, "data") >= 0) counter++;
|
||||||
if (counter == 6) LOG(info) << "Simple message with short text data successfull";
|
if (counter == 6) LOG(info) << "Simple message with short text data successfull";
|
||||||
|
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
|
|
||||||
if (counter == 6) LOG(info) << "PAIR test successfull.";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user