add n_events argument to zmq_poller_wait_all

avoids unnecessary heap allocations, races on the number of items
This commit is contained in:
Min RK
2016-09-27 14:08:02 +02:00
parent 187b4bff48
commit de7fc1fcf8
5 changed files with 15 additions and 24 deletions

View File

@@ -73,7 +73,7 @@ namespace zmq
int modify_fd (fd_t fd, short events);
int remove_fd (fd_t fd);
int wait (event_t *event, long timeout);
int wait (event_t *event, int n_events, long timeout);
inline int size (void) { return items.size (); };