Commit 131a2627 authored by Doron Somech's avatar Doron Somech Committed by GitHub

Merge pull request #2131 from minrk/poller-static-2

pass through poller events
parents 06aeb47d ec750732
......@@ -1243,16 +1243,8 @@ int zmq_poller_wait_all (void *poller_, zmq_poller_event_t *events, int n_events
}
zmq_assert (events != NULL);
zmq::socket_poller_t::event_t evts[n_events];
int rc = ((zmq::socket_poller_t*)poller_)->wait (evts, n_events, timeout_);
for(int i = 0; i < n_events; ++i) {
events[i].socket = evts[i].socket;
events[i].fd = evts[i].fd;
events[i].user_data = evts[i].user_data;
events[i].events = evts[i].events;
}
int rc = ((zmq::socket_poller_t*)poller_)->wait ((zmq::socket_poller_t::event_t *)events, n_events, timeout_);
return rc;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment