diff options
author | Martin Sustrik <sustrik@fastmq.commkdir> | 2010-01-04 15:46:20 +0100 |
---|---|---|
committer | Martin Sustrik <sustrik@fastmq.commkdir> | 2010-01-04 15:46:20 +0100 |
commit | f2b235db165e459f7f265993477dae0dc987125a (patch) | |
tree | 4c51a044bb8a66d4787297540d78d88434632732 /bindings/cpp | |
parent | 7884f4541aa6f95b76e0b2429baaf11108c543a1 (diff) |
ZMQII-29: Add timeout to zmq_poll function
Diffstat (limited to 'bindings/cpp')
-rw-r--r-- | bindings/cpp/zmq.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bindings/cpp/zmq.hpp b/bindings/cpp/zmq.hpp index 4349f0b..6d5bbab 100644 --- a/bindings/cpp/zmq.hpp +++ b/bindings/cpp/zmq.hpp @@ -33,9 +33,9 @@ namespace zmq typedef zmq_free_fn free_fn; typedef zmq_pollitem_t pollitem_t; - inline int poll (zmq_pollitem_t *items_, int nitems_) + inline int poll (zmq_pollitem_t *items_, int nitems_, long timeout_ = -1) { - return zmq_poll (items_, nitems_); + return zmq_poll (items_, nitems_, timeout_); } class error_t : public std::exception |