Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
adc18e7e
Commit
adc18e7e
authored
Oct 19, 2012
by
JINMEI Tatuya
Browse files
[2211] create the client lists map in the DataSrcClientsMgr ctor.
this will help corner case considerations of it being NULL
parent
8a4c6f4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/auth/datasrc_clients_mgr.h
View file @
adc18e7e
...
...
@@ -84,6 +84,11 @@ typedef std::pair<CommandID, data::ConstElementPtr> Command;
template
<
typename
ThreadType
,
typename
BuilderType
,
typename
MutexType
,
typename
CondVarType
>
class
DataSrcClientsMgrBase
{
private:
typedef
std
::
map
<
dns
::
RRClass
,
boost
::
shared_ptr
<
datasrc
::
ConfigurableClientList
>
>
ClientListsMap
;
public:
/// \brief Constructor.
///
...
...
@@ -98,6 +103,7 @@ public:
/// \throw std::bad_alloc internal memory allocation failure.
/// \throw isc::Unexpected general unexpected system errors.
DataSrcClientsMgrBase
()
:
clients_map_
(
new
ClientListsMap
),
builder_
(
&
command_queue_
,
&
cond_
,
&
queue_mutex_
,
&
clients_map_
,
&
map_mutex_
),
builder_thread_
(
boost
::
bind
(
&
BuilderType
::
run
,
&
builder_
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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