#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 contentValuesFiles::m, and m_resources.
Referenced by temporaryUnlock().
|
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 60 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 lock(), and unlock().
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 64 of file SharedResourcesAcquirer.h.
Referenced by lock(), numberOfResources(), and unlock().