Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Adam Osuchowski
Kea
Commits
ece829ff
Commit
ece829ff
authored
May 28, 2013
by
Thomas Markwalder
Browse files
[2955] Review comments addressed. Corrected member and method names.
parent
a9b9f641
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/bin/d2/d2_process.cc
View file @
ece829ff
...
...
@@ -39,7 +39,7 @@ D2Process::run() {
// occur.
LOG_DEBUG
(
d2_logger
,
DBGLVL_START_SHUT
,
D2PRC_RUN_ENTER
);
IOServicePtr
&
io_service
=
getIoService
();
while
(
!
shouldShut
D
own
())
{
while
(
!
shouldShut
d
own
())
{
try
{
io_service
->
run_one
();
}
catch
(
const
std
::
exception
&
ex
)
{
...
...
src/bin/d2/d_process.h
View file @
ece829ff
...
...
@@ -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
shouldShut
D
own
()
{
return
shut_down_flag
;
bool
shouldShut
d
own
()
{
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.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment