mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31: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
@@ -52,6 +52,11 @@ int main(int argc, char** argv)
|
||||
config.ParseAll(argc, argv);
|
||||
|
||||
std::unique_ptr<FairMQDevice> device(getDevice(config));
|
||||
if (!device)
|
||||
{
|
||||
LOG(ERROR) << "getDevice(): no valid device provided. Exiting.";
|
||||
return 1;
|
||||
}
|
||||
int result = runStateMachine(*device, config);
|
||||
|
||||
if (result > 0)
|
||||
|
Reference in New Issue
Block a user