serviceKeyMap.insert(std::make_pair(record, candidate));
if (is_unique) {
- record->addListener(this);
+ record->add_listener(this);
}
return candidate;
// Clear service listeners
for (auto p : serviceKeyMap) {
- p.first->removeListener(this);
+ p.first->remove_listener(this);
}
active_control_conns--;
// commence starting/stopping.
void unpin() noexcept;
- bool isDummy() noexcept
+ bool is_dummy() noexcept
{
return record_type == service_type_t::DUMMY;
}
// Add a listener. A listener must only be added once. May throw std::bad_alloc.
- void addListener(service_listener * listener)
+ void add_listener(service_listener * listener)
{
listeners.insert(listener);
}
// Remove a listener.
- void removeListener(service_listener * listener) noexcept
+ void remove_listener(service_listener * listener) noexcept
{
listeners.erase(listener);
}
// First try and find an existing record...
service_record * rval = find_service(string(name));
if (rval != 0) {
- if (rval->isDummy()) {
+ if (rval->is_dummy()) {
throw service_cyclic_dependency(name);
}
return rval;