#include <SharedResourcesRegistry.h>
Definition at line 39 of file SharedResourcesRegistry.h.
◆ SharedResourcesRegistry() [1/2]
◆ SharedResourcesRegistry() [2/2]
SharedResourcesRegistry::SharedResourcesRegistry |
( |
| ) |
|
|
private |
◆ ~SharedResourcesRegistry()
edm::SharedResourcesRegistry::~SharedResourcesRegistry |
( |
| ) |
|
|
privatedefault |
◆ createAcquirer()
SharedResourcesAcquirer SharedResourcesRegistry::createAcquirer |
( |
std::vector< std::string > const & |
resourceNames | ) |
const |
Definition at line 75 of file SharedResourcesRegistry.cc.
References cms::cuda::assert(), spr::find(), kLegacyModuleResourceName, eostools::move(), Skims_PA_cff::name, nnet::resource, and resourceMap_.
Referenced by edm::one::impl::SharedResourcesUser< T >::createAcquirer().
89 std::map<std::pair<unsigned int, std::string>, std::shared_ptr<SerialTaskQueue>> sortedResources;
100 if (
resource.first.substr(0, 3) ==
"es_")
104 sortedResources.insert(
110 for (
auto const&
name : resourceNames) {
115 sortedResources.insert(
121 std::vector<std::shared_ptr<SerialTaskQueue>> queues;
122 queues.reserve(sortedResources.size());
123 for (
auto const&
resource : sortedResources) {
126 if (queues.empty()) {
129 queues.push_back(std::make_shared<SerialTaskQueue>());
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
std::map< std::string, std::pair< std::shared_ptr< SerialTaskQueue >, unsigned int > > resourceMap_
static const std::string kLegacyModuleResourceName
All legacy modules share this resource.
◆ createAcquirerForSourceDelayedReader()
std::pair< SharedResourcesAcquirer, std::shared_ptr< std::recursive_mutex > > SharedResourcesRegistry::createAcquirerForSourceDelayedReader |
( |
| ) |
|
◆ instance()
◆ operator=()
◆ registerSharedResource()
void SharedResourcesRegistry::registerSharedResource |
( |
const std::string & |
resourceName | ) |
|
◆ ::testSharedResourcesRegistry
friend class ::testSharedResourcesRegistry |
|
friend |
◆ kLegacyModuleResourceName
const std::string SharedResourcesRegistry::kLegacyModuleResourceName {"__legacy__"} |
|
static |
◆ nLegacy_
unsigned int edm::SharedResourcesRegistry::nLegacy_ |
|
private |
◆ queueForDelayedReader_
◆ resourceForDelayedReader_
edm::propagate_const<std::shared_ptr<std::recursive_mutex> > edm::SharedResourcesRegistry::resourceForDelayedReader_ |
|
private |
◆ resourceMap_
std::map<std::string, std::pair<std::shared_ptr<SerialTaskQueue>, unsigned int> > edm::SharedResourcesRegistry::resourceMap_ |
|
private |