1 #ifndef FWCore_Framework_SharedResourcesRegistry_h
2 #define FWCore_Framework_SharedResourcesRegistry_h
31 class testSharedResourcesRegistry;
41 friend class ::testSharedResourcesRegistry;
57 #ifdef SHAREDRESOURCETESTACCESSORS
59 std::map<std::string, std::pair<std::shared_ptr<std::recursive_mutex>,
unsigned int>>
const& resourceMap()
const {
return resourceMap_; }
71 std::map<std::string, std::pair<std::shared_ptr<std::recursive_mutex>,
unsigned int>>
resourceMap_;
SharedResourcesAcquirer createAcquirerForSourceDelayedReader()
SharedResourcesRegistry()
std::map< std::string, std::pair< std::shared_ptr< std::recursive_mutex >, unsigned int > > resourceMap_
SharedResourcesAcquirer createAcquirer(std::vector< std::string > const &) const
static SharedResourcesRegistry * instance()
void registerSharedResource(const std::string &)
A resource name must be registered before it can be used in the createAcquirer call.
static const std::string kLegacyModuleResourceName
All legacy modules share this resource.
std::shared_ptr< std::recursive_mutex > resourceForDelayedReader_
const SharedResourcesRegistry & operator=(const SharedResourcesRegistry &)=delete
~SharedResourcesRegistry()=default