LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "SharedResource.h"
Public Types | |
using | queue_ptr_t = std::shared_ptr< hep::concurrency::SerialTaskQueue > |
Public Member Functions | |
SharedResources () | |
void | registerSharedResources (std::set< std::string > const &names) |
void | registerSharedResource (detail::SharedResource_t const &) |
void | freeze (tbb::task_group &group) |
std::vector< queue_ptr_t > | createQueues (std::vector< std::string > const &resourceNames) const |
Private Member Functions | |
void | register_resource (std::string const &name) |
void | ensure_not_frozen (std::string const &name) |
Private Attributes | |
std::map< std::string, unsigned > | resourceCounts_ |
std::vector< std::pair< std::string, queue_ptr_t > > | sortedResources_ |
bool | frozen_ {false} |
unsigned | nLegacy_ {} |
Definition at line 31 of file SharedResource.h.
using art::detail::SharedResources::queue_ptr_t = std::shared_ptr<hep::concurrency::SerialTaskQueue> |
Definition at line 39 of file SharedResource.h.
art::detail::SharedResources::SharedResources | ( | ) |
std::vector< std::shared_ptr< SerialTaskQueue > > art::detail::SharedResources::createQueues | ( | std::vector< std::string > const & | resourceNames | ) | const |
Definition at line 108 of file SharedResource.cc.
References util::begin(), util::empty(), util::end(), art::detail::LegacyResource, art::detail::SharedResource_t::name, and util::values().
Referenced by art::detail::SharedModule::createQueues().
|
private |
Definition at line 47 of file SharedResource.cc.
References art::errors::LogicError.
void art::detail::SharedResources::freeze | ( | tbb::task_group & | group | ) |
Definition at line 80 of file SharedResource.cc.
References art::detail::LegacyResource, art::detail::SharedResource_t::name, and util::values().
Referenced by art::EventProcessor::EventProcessor().
|
private |
Definition at line 70 of file SharedResource.cc.
References art::detail::LegacyResource, and art::detail::SharedResource_t::name.
void art::detail::SharedResources::registerSharedResource | ( | detail::SharedResource_t const & | resource | ) |
Definition at line 64 of file SharedResource.cc.
References art::detail::SharedResource_t::name.
void art::detail::SharedResources::registerSharedResources | ( | std::set< std::string > const & | names | ) |
Definition at line 58 of file SharedResource.cc.
References art::detail::SharedResource_t::name.
|
private |
Definition at line 49 of file SharedResource.h.
|
private |
Definition at line 50 of file SharedResource.h.
|
private |
Definition at line 47 of file SharedResource.h.
|
private |
Definition at line 48 of file SharedResource.h.