From c193fd146661b39027c5e3fa0776dcdf8c6af5e2 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Thu, 29 Apr 2010 17:20:23 +0200 Subject: lock-free polling removed; ZMQ_POLL flag removed --- src/zmq.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/zmq.cpp') diff --git a/src/zmq.cpp b/src/zmq.cpp index 74d52f6..c05af25 100644 --- a/src/zmq.cpp +++ b/src/zmq.cpp @@ -228,14 +228,7 @@ size_t zmq_msg_size (zmq_msg_t *msg_) void *zmq_init (int app_threads_, int io_threads_, int flags_) { - // There should be at least a single application thread managed - // by the dispatcher. There's no need for I/O threads if 0MQ is used - // only for inproc messaging - if (app_threads_ < 1 || io_threads_ < 0 || - app_threads_ > 63 || io_threads_ > 63) { - errno = EINVAL; - return NULL; - } + // There are no context flags defined at the moment, so flags_ is ignored. #if defined ZMQ_HAVE_OPENPGM // Unfortunately, OpenPGM doesn't support refcounted init/shutdown, thus, @@ -269,7 +262,7 @@ void *zmq_init (int app_threads_, int io_threads_, int flags_) // Create 0MQ context. zmq::dispatcher_t *dispatcher = new (std::nothrow) zmq::dispatcher_t ( - app_threads_, io_threads_, flags_); + app_threads_, io_threads_); zmq_assert (dispatcher); return (void*) dispatcher; } -- cgit v1.2.3