void FilterService::addFilterFactory( FilterFactoryPtr filterFactoryPtr, const std::vector<int> &filterIds) { FilterDescription filterDescription = filterFactoryPtr->getFilterDescription(); WriteLock writeLock(mFilterFactoryMapMutex); for (std::size_t i=0; i<filterIds.size(); ++i) { mFilterFactoryMap[ filterIds[i] ] = filterFactoryPtr; } }
void FilterService::addFilterFactory(FilterFactoryPtr filterFactoryPtr) { FilterDescription filterDescription = filterFactoryPtr->getFilterDescription(); WriteLock writeLock(mFilterFactoryMapMutex); mFilterFactoryMap[ filterDescription.getId() ] = filterFactoryPtr; }