diff options
author | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-08-03 11:30:13 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-08-03 11:30:13 +0200 |
commit | cc3755a16f00026af882ed14d122cc8aa6d50e82 (patch) | |
tree | 33a2197bab1bd6068dbfcc446fe70aaa07808fa9 /src/safe_object.cpp | |
parent | 183b6887644ac05c951a3f9143248ed86e91052f (diff) |
renamed from zs to zmq
Diffstat (limited to 'src/safe_object.cpp')
-rw-r--r-- | src/safe_object.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/safe_object.cpp b/src/safe_object.cpp index a7c72e6..5a5ab8b 100644 --- a/src/safe_object.cpp +++ b/src/safe_object.cpp @@ -19,7 +19,7 @@ #include "safe_object.hpp" -zs::safe_object_t::safe_object_t (class dispatcher_t *dispatcher_, +zmq::safe_object_t::safe_object_t (class dispatcher_t *dispatcher_, int thread_slot_) : object_t (dispatcher_, thread_slot_), processed_seqnum (0), @@ -27,14 +27,14 @@ zs::safe_object_t::safe_object_t (class dispatcher_t *dispatcher_, { } -zs::safe_object_t::safe_object_t (object_t *parent_) : +zmq::safe_object_t::safe_object_t (object_t *parent_) : object_t (parent_), processed_seqnum (0), terminating (false) { } -void zs::safe_object_t::inc_seqnum () +void zmq::safe_object_t::inc_seqnum () { // This function is called from the sender thread to ensure that this // object will still exist when the command sent to it arrives in the @@ -42,7 +42,7 @@ void zs::safe_object_t::inc_seqnum () sent_seqnum.add (1); } -void zs::safe_object_t::process_command (struct command_t &cmd_) +void zmq::safe_object_t::process_command (struct command_t &cmd_) { object_t::process_command (cmd_); @@ -55,7 +55,7 @@ void zs::safe_object_t::process_command (struct command_t &cmd_) delete this; } -void zs::safe_object_t::terminate () +void zmq::safe_object_t::terminate () { // Wait till all commands sent to this session are processed. terminating = true; @@ -66,11 +66,11 @@ void zs::safe_object_t::terminate () delete this; } -bool zs::safe_object_t::is_terminating () +bool zmq::safe_object_t::is_terminating () { return terminating; } -zs::safe_object_t::~safe_object_t () +zmq::safe_object_t::~safe_object_t () { } |