33 boost::upgrade_lock<boost::shared_mutex> uplck(itsParamMtx);
34 if (itsParameterList.find(param->
name()) != itsParameterList.end())
35 LFATAL(
"Duplicate Parameter Name: " << param->
name());
37 boost::upgrade_to_unique_lock<boost::shared_mutex> ulck(uplck);
38 itsParameterList[param->
name()] = param;
40 LDEBUG(
"Added Parameter [" << param->
name() <<
']');
48 boost::upgrade_lock<boost::shared_mutex> uplck(itsParamMtx);
49 auto itr = itsParameterList.find(param->
name());
51 if (itr == itsParameterList.end())
52 LERROR(
"Parameter " << param->
name() <<
" not owned by this component -- NOT REMOVED");
55 boost::upgrade_to_unique_lock<boost::shared_mutex> ulck(uplck);
56 itsParameterList.erase(itr);
59 LDEBUG(
"Removed Parameter [" << param->
name() <<
']');
67 boost::shared_lock<boost::shared_mutex> _(itsParamMtx);
69 for (
auto const & pl : itsParameterList) pl.second->callbackInitCall();