summaryrefslogtreecommitdiff
path: root/src/object.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2010-11-05 16:38:52 +0100
committerMartin Sustrik <sustrik@250bpm.com>2010-11-05 16:38:52 +0100
commit9cfdb441f45057c7106a101835d65164fce9470a (patch)
tree20b7db26b4f27b726d15ec80aa24333f1c02d729 /src/object.cpp
parent623a9c9f1b53bdda9ad61f58cdc7a286e3e474cd (diff)
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 <sustrik@250bpm.com>
Diffstat (limited to 'src/object.cpp')
-rw-r--r--src/object.cpp14
1 files changed, 7 insertions, 7 deletions
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_);
}