#include <SharedResourcesAcquirer.h>
Public Member Functions | |
void | lock () |
size_t | numberOfResources () const |
The number returned may be less than the number of resources requested if a resource is only used by one module and therefore is not being shared. More... | |
SharedResourcesAcquirer & | operator= (const SharedResourcesAcquirer &)=default |
SharedResourcesAcquirer ()=default | |
SharedResourcesAcquirer (std::vector< std::recursive_mutex * > &&iResources) | |
SharedResourcesAcquirer (SharedResourcesAcquirer &&)=default | |
SharedResourcesAcquirer (const SharedResourcesAcquirer &)=default | |
template<typename FUNC > | |
void | temporaryUnlock (FUNC iFunc) |
void | unlock () |
~SharedResourcesAcquirer ()=default | |
Private Attributes | |
std::vector < std::recursive_mutex * > | m_resources |
Friends | |
class | ::testSharedResourcesRegistry |
Definition at line 31 of file SharedResourcesAcquirer.h.
|
default |
|
inlineexplicit |
Definition at line 37 of file SharedResourcesAcquirer.h.
|
default |
|
default |
|
default |
void SharedResourcesAcquirer::lock | ( | void | ) |
Definition at line 20 of file SharedResourcesAcquirer.cc.
References visualization-live-secondInstance_cfg::m, and m_resources.
|
inline |
The number returned may be less than the number of resources requested if a resource is only used by one module and therefore is not being shared.
Definition at line 61 of file SharedResourcesAcquirer.h.
References m_resources.
|
default |
|
inline |
Used by the framework to temporarily unlock a resource in the case where a module is temporarily suspended, e.g. when a Event::getByLabel call launches a Producer via unscheduled processing
Definition at line 53 of file SharedResourcesAcquirer.h.
References unlock().
Referenced by edm::EventPrincipal::unscheduledFill().
void SharedResourcesAcquirer::unlock | ( | void | ) |
Definition at line 26 of file SharedResourcesAcquirer.cc.
References m_resources.
Referenced by temporaryUnlock().
|
friend |
Definition at line 34 of file SharedResourcesAcquirer.h.
|
private |
Definition at line 65 of file SharedResourcesAcquirer.h.
Referenced by lock(), numberOfResources(), and unlock().