mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-25 18:23:01 +02:00
dispatcher renamed to context
This commit is contained in:
@@ -29,13 +29,13 @@
|
||||
#include "select.hpp"
|
||||
#include "devpoll.hpp"
|
||||
#include "kqueue.hpp"
|
||||
#include "dispatcher.hpp"
|
||||
#include "context.hpp"
|
||||
#include "session.hpp"
|
||||
#include "simple_semaphore.hpp"
|
||||
#include "session.hpp"
|
||||
|
||||
zmq::io_thread_t::io_thread_t (dispatcher_t *dispatcher_, int thread_slot_) :
|
||||
object_t (dispatcher_, thread_slot_)
|
||||
zmq::io_thread_t::io_thread_t (context_t *context_, int thread_slot_) :
|
||||
object_t (context_, thread_slot_)
|
||||
{
|
||||
#if defined ZMQ_FORCE_SELECT
|
||||
poller = new select_t;
|
||||
@@ -131,7 +131,7 @@ void zmq::io_thread_t::in_event ()
|
||||
|
||||
// Read all the commands from particular thread.
|
||||
command_t cmd;
|
||||
while (dispatcher->read (source_thread_slot, thread_slot, &cmd))
|
||||
while (context->read (source_thread_slot, thread_slot, &cmd))
|
||||
cmd.destination->process_command (cmd);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user