From 9cfdb441f45057c7106a101835d65164fce9470a Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Fri, 5 Nov 2010 16:38:52 +0100 Subject: slots renamed to tids Threads were so far identified by integers called 'slots'. This patch renames them to more comprehensible 'tid's (thread IDs). Signed-off-by: Martin Sustrik --- src/object.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/object.cpp') diff --git a/src/object.cpp b/src/object.cpp index 447773f..3e3ddec 100644 --- a/src/object.cpp +++ b/src/object.cpp @@ -27,15 +27,15 @@ #include "session.hpp" #include "socket_base.hpp" -zmq::object_t::object_t (ctx_t *ctx_, uint32_t slot_) : +zmq::object_t::object_t (ctx_t *ctx_, uint32_t tid_) : ctx (ctx_), - slot (slot_) + tid (tid_) { } zmq::object_t::object_t (object_t *parent_) : ctx (parent_->ctx), - slot (parent_->slot) + tid (parent_->tid) { } @@ -43,9 +43,9 @@ zmq::object_t::~object_t () { } -uint32_t zmq::object_t::get_slot () +uint32_t zmq::object_t::get_tid () { - return slot; + return tid; } zmq::ctx_t *zmq::object_t::get_ctx () @@ -162,7 +162,7 @@ void zmq::object_t::send_stop () #endif cmd.destination = this; cmd.type = command_t::stop; - ctx->send_command (slot, cmd); + ctx->send_command (tid, cmd); } void zmq::object_t::send_plug (own_t *destination_, bool inc_seqnum_) @@ -404,6 +404,6 @@ void zmq::object_t::process_seqnum () void zmq::object_t::send_command (command_t &cmd_) { - ctx->send_command (cmd_.destination->get_slot (), cmd_); + ctx->send_command (cmd_.destination->get_tid (), cmd_); } -- cgit v1.2.3