This commit is contained in:
Vincent Batts 2012-07-16 14:41:18 -04:00
parent c8f56b8b52
commit 63ff276544
3 changed files with 4 additions and 3 deletions

View file

@ -25,7 +25,8 @@ void *worker_routine (void *arg)
}
int main(int ac, char** av) {
zmq::context_t ctx (1);
int threads = 5;
zmq::context_t ctx (threads);
zmq::socket_t workers (ctx, ZMQ_XREQ);
workers.bind ("inproc://workers");