#include <SharedResourcesRegistry.h>
Classes | |
class | QueueAndCounter |
Public Member Functions | |
SharedResourcesRegistry () | |
SharedResourcesRegistry (SharedResourcesRegistry const &)=delete | |
SharedResourcesRegistry (SharedResourcesRegistry &&)=delete | |
SharedResourcesRegistry & | operator= (SharedResourcesRegistry const &)=delete |
SharedResourcesRegistry & | operator= (SharedResourcesRegistry &&)=delete |
bool | containsResource (std::string const &) const |
void | registerSharedResource (detail::SharedResource_t const &) noexcept( false) |
void | registerSharedResource (std::string const &) noexcept(false) |
void | updateSharedResource (std::string const &) noexcept(false) |
void | freeze () |
std::vector< std::shared_ptr< hep::concurrency::SerialTaskQueue > > | createQueues (std::string const &resourceName) const |
std::vector< std::shared_ptr< hep::concurrency::SerialTaskQueue > > | createQueues (std::vector< std::string > const &resourceNames) const |
Static Public Member Functions | |
static SharedResourcesRegistry * | instance (bool shutdown=false) |
Static Public Attributes | |
static detail::SharedResource_t const | Legacy |
Private Attributes | |
hep::concurrency::RecursiveMutex | mutex_ {"srr::mutex_"} |
std::map< std::string, QueueAndCounter > | resourceMap_ |
bool | frozen_ |
unsigned | nLegacy_ |
Definition at line 22 of file SharedResourcesRegistry.h.
art::SharedResourcesRegistry::SharedResourcesRegistry | ( | ) |
Definition at line 67 of file SharedResourcesRegistry.cc.
|
delete |
|
delete |
bool art::SharedResourcesRegistry::containsResource | ( | std::string const & | ) | const |
vector< shared_ptr< SerialTaskQueue > > art::SharedResourcesRegistry::createQueues | ( | std::string const & | resourceName | ) | const |
Definition at line 151 of file SharedResourcesRegistry.cc.
vector< shared_ptr< SerialTaskQueue > > art::SharedResourcesRegistry::createQueues | ( | std::vector< std::string > const & | resourceNames | ) | const |
Definition at line 159 of file SharedResourcesRegistry.cc.
void art::SharedResourcesRegistry::freeze | ( | ) |
Definition at line 145 of file SharedResourcesRegistry.cc.
|
static |
Definition at line 34 of file SharedResourcesRegistry.cc.
|
delete |
|
delete |
|
noexcept |
Definition at line 126 of file SharedResourcesRegistry.cc.
|
noexcept |
Definition at line 134 of file SharedResourcesRegistry.cc.
|
noexcept |
Definition at line 79 of file SharedResourcesRegistry.cc.
|
private |
Definition at line 60 of file SharedResourcesRegistry.h.
|
static |
Definition at line 38 of file SharedResourcesRegistry.h.
|
mutableprivate |
Definition at line 58 of file SharedResourcesRegistry.h.
|
private |
Definition at line 61 of file SharedResourcesRegistry.h.
|
private |
Definition at line 59 of file SharedResourcesRegistry.h.