| 316 | } |
| 317 | |
| 318 | void ServiceRegistry::GetUsedByModule(Module* p, |
| 319 | std::vector<ServiceRegistrationBase>& res) const |
| 320 | { |
| 321 | MutexLock lock(mutex); |
| 322 | |
| 323 | for (std::vector<ServiceRegistrationBase>::const_iterator i = serviceRegistrations.begin(); |
| 324 | i != serviceRegistrations.end(); ++i) |
| 325 | { |
| 326 | if (i->d->IsUsedByModule(p)) |
| 327 | { |
| 328 | res.push_back(*i); |
| 329 | } |
| 330 | } |
| 331 | } |
| 332 | |
| 333 | } |
no test coverage detected