mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 17:41:45 +00:00
Refactor the transport interface
- give transport Initialize() method with access to device config. - avoid using global context in the transport. - simplify shutdown procedure (no need for extra thread).
This commit is contained in:
committed by
Mohammad Al-Turany
parent
d7eb692951
commit
5aaf27bf02
@@ -581,9 +581,9 @@ void FairMQChannel::InitTransport(shared_ptr<FairMQTransportFactory> factory)
|
||||
fTransportType = factory->GetType();
|
||||
}
|
||||
|
||||
bool FairMQChannel::InitCommandInterface(int numIoThreads)
|
||||
bool FairMQChannel::InitCommandInterface()
|
||||
{
|
||||
fChannelCmdSocket = fTransportFactory->CreateSocket("sub", "device-commands", numIoThreads, "internal");
|
||||
fChannelCmdSocket = fTransportFactory->CreateSocket("sub", "device-commands", "internal");
|
||||
if (fChannelCmdSocket)
|
||||
{
|
||||
fChannelCmdSocket->Connect("inproc://commands");
|
||||
|
Reference in New Issue
Block a user