diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2010-04-29 17:20:23 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2010-04-29 17:20:23 +0200 |
commit | c193fd146661b39027c5e3fa0776dcdf8c6af5e2 (patch) | |
tree | 0ec001869a7e6519cc1b910de0b26c46308eba96 /src/zmq.cpp | |
parent | 7cb076e56a18cb76c49f17bd34bc73c11e01b705 (diff) |
lock-free polling removed; ZMQ_POLL flag removed
Diffstat (limited to 'src/zmq.cpp')
-rw-r--r-- | src/zmq.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
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; } |