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:89
static void closeContext(const std::string &contextName=std::string{})
Definition: ZmqContextManager.cpp:70
const std::string & getName() const
Definition: ZmqContextManager.h:70
~ZmqContextManager()
Definition: ZmqContextManager.cpp:98
static bool setContextToLeakOnDelete(const std::string &contextName=std::string{})
Definition: ZmqContextManager.cpp:79
static zmq::context_t & getContext(const std::string &contextName=std::string{})
Definition: ZmqContextManager.cpp:55
zmq::context_t & getBaseContext() const
Definition: ZmqContextManager.h:72
static std::shared_ptr< ZmqContextManager > getContextPointer(const std::string &contextName=std::string{})
Definition: ZmqContextManager.cpp:39
static void startContext(const std::string &contextName=std::string{})
Definition: ZmqContextManager.cpp:60