diff options
| author | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-11-21 20:59:55 +0100 | 
|---|---|---|
| committer | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-11-21 20:59:55 +0100 | 
| commit | 0e9ab2e8a3f5bc22f2c331c14236a2918a5512a8 (patch) | |
| tree | c91f1e131a4a84a374c466f147958c5971f36ad7 /src/zmq.cpp | |
| parent | 14f2fecdcd9732fe741c211138a4ba327816a937 (diff) | |
inproc transport - initial commit
Diffstat (limited to 'src/zmq.cpp')
| -rw-r--r-- | src/zmq.cpp | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/src/zmq.cpp b/src/zmq.cpp index 7952b61..9b66be8 100644 --- a/src/zmq.cpp +++ b/src/zmq.cpp @@ -198,8 +198,10 @@ 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 thread managed by the dispatcher. -    if (app_threads_ <= 0 || io_threads_ <= 0 || +    //  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;  | 
