summaryrefslogtreecommitdiff
path: root/src/ctx.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/ctx.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/ctx.hpp')
-rw-r--r--src/ctx.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ctx.hpp b/src/ctx.hpp
index a86482c..5a3a6aa 100644
--- a/src/ctx.hpp
+++ b/src/ctx.hpp
@@ -61,8 +61,8 @@ namespace zmq
// Make socket a zombie.
void zombify_socket (socket_base_t *socket_);
- // Send command to the destination slot.
- void send_command (uint32_t slot_, const command_t &command_);
+ // Send command to the destination thread.
+ void send_command (uint32_t tid_, const command_t &command_);
// Returns the I/O thread that is the least busy at the moment.
// Affinity specifies which I/O threads are eligible (0 = all).
@@ -90,7 +90,7 @@ namespace zmq
typedef std::vector <socket_base_t*> zombies_t;
zombies_t zombies;
- // List of unused slots.
+ // List of unused thread slots.
typedef std::vector <uint32_t> emtpy_slots_t;
emtpy_slots_t empty_slots;