From 8b9bd05726c3df56d7f437889abccba3cbbffdee Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Mon, 3 May 2010 16:21:36 +0200 Subject: thread ID and dispatcher made private in object_t --- src/app_thread.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/app_thread.cpp') diff --git a/src/app_thread.cpp b/src/app_thread.cpp index 1350248..bd5f5e3 100644 --- a/src/app_thread.cpp +++ b/src/app_thread.cpp @@ -123,7 +123,7 @@ bool zmq::app_thread_t::process_commands (bool block_, bool throttle_) // Process all the commands from the signaling source if there is one. if (signal != signaler_t::no_signal) { command_t cmd; - while (dispatcher->read (signal, get_thread_slot (), &cmd)) + while (get_dispatcher ()->read (signal, get_thread_slot (), &cmd)) cmd.destination->process_command (cmd); } @@ -163,7 +163,7 @@ zmq::socket_base_t *zmq::app_thread_t::create_socket (int type_) break; default: if (sockets.empty ()) - dispatcher->no_sockets (this); + get_dispatcher ()->no_sockets (this); errno = EINVAL; return NULL; } @@ -178,7 +178,7 @@ void zmq::app_thread_t::remove_socket (socket_base_t *socket_) { sockets.erase (socket_); if (sockets.empty ()) - dispatcher->no_sockets (this); + get_dispatcher ()->no_sockets (this); } void zmq::app_thread_t::process_stop () -- cgit v1.2.3