1 #ifndef FWCore_Framework_SharedResourcesRegistry_h
2 #define FWCore_Framework_SharedResourcesRegistry_h
34 class testSharedResourcesRegistry;
44 friend class ::testSharedResourcesRegistry;
61 #ifdef SHAREDRESOURCETESTACCESSORS
63 std::map<std::string, std::pair<std::shared_ptr<SerialTaskQueue>,
unsigned int>>
const& resourceMap()
const {
return resourceMap_; }
75 std::map<std::string, std::pair<std::shared_ptr<SerialTaskQueue>,
unsigned int>>
resourceMap_;
edm::propagate_const< std::shared_ptr< SerialTaskQueue > > queueForDelayedReader_
SharedResourcesRegistry()
std::map< std::string, std::pair< std::shared_ptr< SerialTaskQueue >, unsigned int > > resourceMap_
SharedResourcesAcquirer createAcquirer(std::vector< std::string > const &) const
static SharedResourcesRegistry * instance()
edm::propagate_const< std::shared_ptr< std::recursive_mutex > > resourceForDelayedReader_
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::pair< SharedResourcesAcquirer, std::shared_ptr< std::recursive_mutex > > createAcquirerForSourceDelayedReader()
const SharedResourcesRegistry & operator=(const SharedResourcesRegistry &)=delete
~SharedResourcesRegistry()=default