#include <ZmqContext.hpp>
Definition at line 107 of file ZmqContext.hpp.
◆ ZmqContext() [1/3]
dunedaq::ipm::ZmqContext::ZmqContext |
( |
| ) |
|
|
inlineprivate |
Definition at line 130 of file ZmqContext.hpp.
131 {
132 auto threads_c = getenv("IPM_ZMQ_IO_THREADS");
133 if (threads_c != nullptr) {
134 auto threads = std::atoi(threads_c);
135 if (threads > 1) {
137 }
138 }
139
140 bool sockets_set = false;
141 auto sockets_c = getenv("IPM_ZMQ_MAX_SOCKETS");
142 if (sockets_c != nullptr) {
143 auto sockets = std::atoi(sockets_c);
146 sockets_set = true;
147 }
148 }
149 if (!sockets_set) {
151 }
152 }
void set_context_threads(int nthreads)
void set_context_maxsockets(int max_sockets)
static constexpr int s_minimum_sockets
◆ ~ZmqContext()
dunedaq::ipm::ZmqContext::~ZmqContext |
( |
| ) |
|
|
inlineprivate |
◆ ZmqContext() [2/3]
dunedaq::ipm::ZmqContext::ZmqContext |
( |
ZmqContext const & | | ) |
|
|
privatedelete |
◆ ZmqContext() [3/3]
dunedaq::ipm::ZmqContext::ZmqContext |
( |
ZmqContext && | | ) |
|
|
privatedelete |
◆ GetContext()
zmq::context_t & dunedaq::ipm::ZmqContext::GetContext |
( |
| ) |
|
|
inline |
◆ instance()
static ZmqContext & dunedaq::ipm::ZmqContext::instance |
( |
| ) |
|
|
inlinestatic |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ set_context_maxsockets()
void dunedaq::ipm::ZmqContext::set_context_maxsockets |
( |
int | max_sockets | ) |
|
|
inline |
Definition at line 123 of file ZmqContext.hpp.
124 {
126 m_context.set(zmq::ctxopt::max_sockets, max_sockets);
127 }
#define TLOG_DEBUG(lvl,...)
◆ set_context_threads()
void dunedaq::ipm::ZmqContext::set_context_threads |
( |
int | nthreads | ) |
|
|
inline |
◆ m_context
zmq::context_t dunedaq::ipm::ZmqContext::m_context |
|
private |
◆ s_minimum_sockets
int dunedaq::ipm::ZmqContext::s_minimum_sockets = 16636 |
|
staticconstexprprivate |
The documentation for this class was generated from the following file: