mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-16 18:11:49 +00:00
refactor to more idiomatic RAII
* FairMQTransportFactoryZMQ: move the config invariant initialization to ctor * FairMQChannel: add new ctor that creates usable channel * FairMQSocket*: close sockets in dtor * FairMQTransportFactory*: terminate context in dtor * FairMQChannel: add Bind/Connect facades (for explicit control, e.g. timing)
This commit is contained in:
committed by
Mohammad Al-Turany
parent
87252edbe0
commit
3205e0c378
@@ -627,4 +627,5 @@ int FairMQSocketSHM::GetConstant(const string& constant)
|
||||
|
||||
FairMQSocketSHM::~FairMQSocketSHM()
|
||||
{
|
||||
Close();
|
||||
}
|
||||
|
@@ -228,3 +228,7 @@ FairMQ::Transport FairMQTransportFactorySHM::GetType() const
|
||||
return fTransportType;
|
||||
}
|
||||
|
||||
FairMQTransportFactorySHM::~FairMQTransportFactorySHM()
|
||||
{
|
||||
Terminate();
|
||||
}
|
||||
|
@@ -45,7 +45,7 @@ class FairMQTransportFactorySHM : public FairMQTransportFactory
|
||||
|
||||
void SendHeartbeats();
|
||||
|
||||
~FairMQTransportFactorySHM() override {};
|
||||
~FairMQTransportFactorySHM() override;
|
||||
|
||||
private:
|
||||
static FairMQ::Transport fTransportType;
|
||||
|
Reference in New Issue
Block a user