34 static std::map<std::string, std::shared_ptr<ZmqContextManager>>
37 std::unique_ptr<zmq::context_t> zcontext;
38 std::atomic<bool> leakOnDelete{
true};
46 static std::shared_ptr<ZmqContextManager>
49 static zmq::context_t&
getContext(
const std::string& contextName = std::string{});
51 static void startContext(
const std::string& contextName = std::string{});
53 static void closeContext(
const std::string& contextName = std::string{});
70 const std::string&
getName()
const {
return name; }
Definition: ZmqContextManager.h:32
static bool setContextToNotLeakOnDelete(const std::string &contextName=std::string{})
Definition: ZmqContextManager.cpp:87
static void closeContext(const std::string &contextName=std::string{})
Definition: ZmqContextManager.cpp:68
const std::string & getName() const
Definition: ZmqContextManager.h:70
~ZmqContextManager()
Definition: ZmqContextManager.cpp:96
static bool setContextToLeakOnDelete(const std::string &contextName=std::string{})
Definition: ZmqContextManager.cpp:77
static zmq::context_t & getContext(const std::string &contextName=std::string{})
Definition: ZmqContextManager.cpp:53
zmq::context_t & getBaseContext() const
Definition: ZmqContextManager.h:72
static std::shared_ptr< ZmqContextManager > getContextPointer(const std::string &contextName=std::string{})
Definition: ZmqContextManager.cpp:37
static void startContext(const std::string &contextName=std::string{})
Definition: ZmqContextManager.cpp:58