Commit ece829ff authored by Thomas Markwalder's avatar Thomas Markwalder
Browse files

[2955] Review comments addressed. Corrected member and method names.

parent a9b9f641
......@@ -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) {
......
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment