From 235ed3a3dcffb7c658cbc9253eae9de54db24533 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Tue, 4 May 2010 10:22:16 +0200 Subject: signaler transports commands per se rather than one-bit signals --- src/object.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/object.cpp') diff --git a/src/object.cpp b/src/object.cpp index 38eb1f8..c5c89cb 100644 --- a/src/object.cpp +++ b/src/object.cpp @@ -157,11 +157,10 @@ void zmq::object_t::send_stop () { // 'stop' command goes always from administrative thread to // the current object. - uint32_t admin_thread_id = dispatcher->thread_slot_count () - 1; command_t cmd; cmd.destination = this; cmd.type = command_t::stop; - dispatcher->write (admin_thread_id, thread_slot, cmd); + dispatcher->send_command (thread_slot, cmd); } void zmq::object_t::send_plug (owned_t *destination_, bool inc_seqnum_) @@ -370,7 +369,6 @@ void zmq::object_t::process_seqnum () void zmq::object_t::send_command (command_t &cmd_) { - uint32_t destination_thread_slot = cmd_.destination->get_thread_slot (); - dispatcher->write (thread_slot, destination_thread_slot, cmd_); + dispatcher->send_command (cmd_.destination->get_thread_slot (), cmd_); } -- cgit v1.2.3