35 LocalService::LocalService(
const Scope& scope) :
43 return "LocalService";
47 boost::recursive_mutex::scoped_lock lock(
mutex);
52 if (!participant->getScope()->isSubScopeOf(*
getScope())) {
54 s <<
"Cannot add Participant " << *participant <<
" with scope "
55 << participant->getScope() <<
" to this service with scope "
57 <<
" because the participant is not in a sub-scope.";
58 throw invalid_argument(s.str());
60 boost::recursive_mutex::scoped_lock lock(
mutex);
65 boost::recursive_mutex::scoped_lock lock(
mutex);