Implement parallel ofi::Socket::Receive

This commit is contained in:
Dennis Klein
2018-11-20 12:45:46 +01:00
committed by Dennis Klein
parent 46e2420547
commit 8e7cfacd78
5 changed files with 160 additions and 83 deletions

View File

@@ -31,11 +31,12 @@ namespace ofi
using namespace std;
Context::Context(int numberIoThreads)
Context::Context(FairMQTransportFactory& receiveFactory, int numberIoThreads)
: fOfiInfo(nullptr)
, fOfiFabric(nullptr)
, fOfiDomain(nullptr)
, fIoWork(fIoContext)
, fReceiveFactory(receiveFactory)
{
InitThreadPool(numberIoThreads);
}
@@ -176,6 +177,11 @@ auto Context::VerifyAddress(const std::string& address) -> Address
return addr;
}
auto Context::MakeReceiveMessage(size_t size) -> MessagePtr
{
return fReceiveFactory.CreateMessage(size);
}
} /* namespace ofi */
} /* namespace mq */
} /* namespace fair */