BIND 10 trac2955, updated. ece829ff0b6b5117ecdfe22439c24b64a8523683 [2955] Review comments addressed. Corrected member and method names.
BIND 10 source code commits
bind10-changes at lists.isc.org
Tue May 28 14:55:56 UTC 2013
The branch, trac2955 has been updated
via ece829ff0b6b5117ecdfe22439c24b64a8523683 (commit)
from a9b9f641970b7f2db1b1183fab3deaec454b5b75 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit ece829ff0b6b5117ecdfe22439c24b64a8523683
Author: Thomas Markwalder <tmark at isc.org>
Date: Tue May 28 10:54:55 2013 -0400
[2955] Review comments addressed. Corrected member and method names.
-----------------------------------------------------------------------
Summary of changes:
src/bin/d2/d2_process.cc | 2 +-
src/bin/d2/d_process.h | 12 ++++++------
2 files changed, 7 insertions(+), 7 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/bin/d2/d2_process.cc b/src/bin/d2/d2_process.cc
index e12f0bc..4fd420b 100644
--- a/src/bin/d2/d2_process.cc
+++ b/src/bin/d2/d2_process.cc
@@ -39,7 +39,7 @@ D2Process::run() {
// occur.
LOG_DEBUG(d2_logger, DBGLVL_START_SHUT, D2PRC_RUN_ENTER);
IOServicePtr& io_service = getIoService();
- while (!shouldShutDown()) {
+ while (!shouldShutdown()) {
try {
io_service->run_one();
} catch (const std::exception& ex) {
diff --git a/src/bin/d2/d_process.h b/src/bin/d2/d_process.h
index 4de50aa..5c8e50e 100644
--- a/src/bin/d2/d_process.h
+++ b/src/bin/d2/d_process.h
@@ -56,7 +56,7 @@ public:
///
/// @throw DProcessBaseError is io_service is NULL.
DProcessBase(const char* name, IOServicePtr io_service) : name_(name),
- io_service_(io_service), shut_down_flag(false) {
+ io_service_(io_service), shut_down_flag_(false) {
if (!io_service_) {
isc_throw (DProcessBaseError, "IO Service cannot be null");
@@ -114,15 +114,15 @@ public:
/// @brief Destructor
virtual ~DProcessBase(){};
- bool shouldShutDown() {
- return shut_down_flag;
+ bool shouldShutdown() {
+ return (shut_down_flag_);
}
void setShutdownFlag(bool value) {
- shut_down_flag = value;
+ shut_down_flag_ = value;
}
- const std::string& getName() {
+ const std::string& getName() const {
return (name_);
}
@@ -139,7 +139,7 @@ private:
IOServicePtr io_service_;
/// @brief Boolean flag set when shutdown has been requested.
- bool shut_down_flag;
+ bool shut_down_flag_;
};
/// @brief Defines a shared pointer to DProcessBase.
More information about the bind10-changes
mailing list