Beispiel #1
0
 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;
     }
 }
Beispiel #2
0
 void FilterService::addFilterFactory(FilterFactoryPtr filterFactoryPtr)
 {
     FilterDescription filterDescription = filterFactoryPtr->getFilterDescription();
     WriteLock writeLock(mFilterFactoryMapMutex);
     mFilterFactoryMap[ filterDescription.getId() ] = filterFactoryPtr;
 }