You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
voidadd (zmq::socket_t &socket, short events, handler_t handler)
1040
1040
{
1041
-
handler_t *handler_ptr = nullptr;
1042
-
/// \todo is it sensible to allow handler to be empty? doesn't this lead to an error when the event is signalled? (perhaps it should already lead to an error in zmq_poller_add then)
1043
-
if (handler) {
1044
-
auto emplace_res = handlers.emplace(&socket, std::move(handler));
1045
-
handler_ptr = &emplace_res.first->second;
1046
-
}
1041
+
handler_t *handler_ptr = nullptr;
1042
+
/// \todo is it sensible to allow handler to be empty? doesn't this lead to an error when the event is signalled? (perhaps it should already lead to an error in zmq_poller_add then)
1043
+
if (handler) {
1044
+
auto emplace_res = handlers.emplace(&socket, std::move(handler));
1045
+
handler_ptr = &emplace_res.first->second;
1046
+
}
1047
1047
if (0 == zmq_poller_add (poller_ptr, socket.ptr, handler_ptr, events)) {
0 commit comments