#include <SharedResourcesRegistry.h>
Public Member Functions | |
SharedResourcesAcquirer | createAcquirer (std::vector< std::string > const &) const |
std::pair< SharedResourcesAcquirer, std::shared_ptr< std::recursive_mutex > > | createAcquirerForSourceDelayedReader () |
const SharedResourcesRegistry & | operator= (const SharedResourcesRegistry &)=delete |
void | registerSharedResource (const std::string &) |
A resource name must be registered before it can be used in the createAcquirer call. More... | |
SharedResourcesRegistry (const SharedResourcesRegistry &)=delete | |
Static Public Member Functions | |
static SharedResourcesRegistry * | instance () |
Private Member Functions | |
SharedResourcesRegistry () | |
~SharedResourcesRegistry ()=default | |
Private Attributes | |
edm::propagate_const< std::shared_ptr< SerialTaskQueue > > | queueForDelayedReader_ |
edm::propagate_const< std::shared_ptr< std::recursive_mutex > > | resourceForDelayedReader_ |
std::map< std::string, std::pair< std::shared_ptr< SerialTaskQueue >, unsigned int > > | resourceMap_ |
Friends | |
class | ::testSharedResourcesRegistry |
Definition at line 35 of file SharedResourcesRegistry.h.
|
delete |
|
private |
Definition at line 26 of file SharedResourcesRegistry.cc.
|
privatedefault |
SharedResourcesAcquirer SharedResourcesRegistry::createAcquirer | ( | std::vector< std::string > const & | resourceNames | ) | const |
Definition at line 53 of file SharedResourcesRegistry.cc.
References cms::cuda::assert(), eostools::move(), Skims_PA_cff::name, nnet::resource, and resourceMap_.
Referenced by edm::one::impl::SharedResourcesUser< T >::createAcquirer().
std::pair< SharedResourcesAcquirer, std::shared_ptr< std::recursive_mutex > > SharedResourcesRegistry::createAcquirerForSourceDelayedReader | ( | ) |
Definition at line 42 of file SharedResourcesRegistry.cc.
References edm::get_underlying(), eostools::move(), queueForDelayedReader_, and resourceForDelayedReader_.
Referenced by edm::DelayedReaderThrowingSource::DelayedReaderThrowingSource(), edm::PoolSource::PoolSource(), and edm::RootDelayedReader::RootDelayedReader().
|
static |
Definition at line 21 of file SharedResourcesRegistry.cc.
Referenced by edm::one::impl::SharedResourcesUser< T >::createAcquirer(), edm::DelayedReaderThrowingSource::DelayedReaderThrowingSource(), edm::PoolSource::PoolSource(), edm::RootDelayedReader::RootDelayedReader(), edm::ESProducer::updateLookup(), edm::one::impl::SharedResourcesUser< T >::usesResource(), and edm::ESProducer::usesResources().
|
delete |
void SharedResourcesRegistry::registerSharedResource | ( | const std::string & | resourceName | ) |
A resource name must be registered before it can be used in the createAcquirer call.
Definition at line 28 of file SharedResourcesRegistry.cc.
References resourceMap_.
Referenced by edm::one::impl::SharedResourcesUser< T >::usesResource().
|
friend |
Definition at line 38 of file SharedResourcesRegistry.h.
|
private |
Definition at line 68 of file SharedResourcesRegistry.h.
Referenced by createAcquirerForSourceDelayedReader().
|
private |
Definition at line 66 of file SharedResourcesRegistry.h.
Referenced by createAcquirerForSourceDelayedReader().
|
private |
Definition at line 64 of file SharedResourcesRegistry.h.
Referenced by createAcquirer(), and registerSharedResource().