Implement linger for ofi

This reduces test runtime significantly for most transports
This commit is contained in:
Dennis Klein 2019-03-20 15:48:55 +01:00 committed by Dennis Klein
parent a1b7efa2f4
commit b45e4da2a9
3 changed files with 5 additions and 4 deletions

View File

@ -62,6 +62,9 @@ auto Context::InitThreadPool(int numberIoThreads) -> void
auto Context::Reset() -> void
{
// TODO "Linger", rethink this
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
fIoContext.stop();
}

View File

@ -57,6 +57,7 @@ class PairLeft : public FairMQDevice
if (counter == 6) LOG(info) << "Simple message with short text data successfull";
assert(counter == 6);
if (counter == 6) LOG(info) << "PAIR test successfull.";
};
};

View File

@ -55,9 +55,6 @@ class PairRight : public FairMQDevice
auto msg6(NewSimpleMessageFor("data", 0, "testdata1234"));
if (Send(msg6, "data") >= 0) counter++;
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.";
};
};
@ -65,4 +62,4 @@ class PairRight : public FairMQDevice
} // namespace mq
} // namespace fair
#endif /* FAIR_MQ_TEST_PAIRRIGHT_H */
#endif /* FAIR_MQ_TEST_PAIRRIGHT_H */