summaryrefslogtreecommitdiff
path: root/src/socket_base.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/socket_base.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/socket_base.cpp')
-rw-r--r--src/socket_base.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/socket_base.cpp b/src/socket_base.cpp
index 36c7197..c6728fe 100644
--- a/src/socket_base.cpp
+++ b/src/socket_base.cpp
@@ -58,37 +58,37 @@
#include "uuid.hpp"
zmq::socket_base_t *zmq::socket_base_t::create (int type_, class ctx_t *parent_,
- uint32_t slot_)
+ uint32_t tid_)
{
socket_base_t *s = NULL;
switch (type_) {
case ZMQ_PAIR:
- s = new (std::nothrow) pair_t (parent_, slot_);
+ s = new (std::nothrow) pair_t (parent_, tid_);
break;
case ZMQ_PUB:
- s = new (std::nothrow) pub_t (parent_, slot_);
+ s = new (std::nothrow) pub_t (parent_, tid_);
break;
case ZMQ_SUB:
- s = new (std::nothrow) sub_t (parent_, slot_);
+ s = new (std::nothrow) sub_t (parent_, tid_);
break;
case ZMQ_REQ:
- s = new (std::nothrow) req_t (parent_, slot_);
+ s = new (std::nothrow) req_t (parent_, tid_);
break;
case ZMQ_REP:
- s = new (std::nothrow) rep_t (parent_, slot_);
+ s = new (std::nothrow) rep_t (parent_, tid_);
break;
case ZMQ_XREQ:
- s = new (std::nothrow) xreq_t (parent_, slot_);
+ s = new (std::nothrow) xreq_t (parent_, tid_);
break;
case ZMQ_XREP:
- s = new (std::nothrow) xrep_t (parent_, slot_);
+ s = new (std::nothrow) xrep_t (parent_, tid_);
break;
case ZMQ_PULL:
- s = new (std::nothrow) pull_t (parent_, slot_);
+ s = new (std::nothrow) pull_t (parent_, tid_);
break;
case ZMQ_PUSH:
- s = new (std::nothrow) push_t (parent_, slot_);
+ s = new (std::nothrow) push_t (parent_, tid_);
break;
default:
errno = EINVAL;
@@ -98,8 +98,8 @@ zmq::socket_base_t *zmq::socket_base_t::create (int type_, class ctx_t *parent_,
return s;
}
-zmq::socket_base_t::socket_base_t (ctx_t *parent_, uint32_t slot_) :
- own_t (parent_, slot_),
+zmq::socket_base_t::socket_base_t (ctx_t *parent_, uint32_t tid_) :
+ own_t (parent_, tid_),
ctx_terminated (false),
destroyed (false),
last_tsc (0),