summaryrefslogtreecommitdiff
path: root/src/object.hpp
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.hpp
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.hpp')
-rw-r--r--src/object.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/object.hpp b/src/object.hpp
index 390cae1..f8cfdda 100644
--- a/src/object.hpp
+++ b/src/object.hpp
@@ -34,11 +34,11 @@ namespace zmq
{
public:
- object_t (class ctx_t *ctx_, uint32_t slot_);
+ object_t (class ctx_t *ctx_, uint32_t tid_);
object_t (object_t *parent_);
virtual ~object_t ();
- uint32_t get_slot ();
+ uint32_t get_tid ();
ctx_t *get_ctx ();
void process_command (struct command_t &cmd_);
@@ -110,8 +110,8 @@ namespace zmq
// Context provides access to the global state.
class ctx_t *ctx;
- // Slot ID of the thread the object belongs to.
- uint32_t slot;
+ // Thread ID of the thread the object belongs to.
+ uint32_t tid;
void send_command (command_t &cmd_);