1 #ifndef Subsystem_Package_SharedResourcesAcquirer_h
2 #define Subsystem_Package_SharedResourcesAcquirer_h
29 class testSharedResourcesRegistry;
34 friend class ::testSharedResourcesRegistry;
52 template<
typename FUNC>
55 std::shared_ptr<void> guard(
nullptr,[iThis](
void* ) {iThis->lock();});
size_t numberOfResources() const
The number returned may be less than the number of resources requested if a resource is only used by ...
std::vector< std::recursive_mutex * > m_resources
SharedResourcesAcquirer & operator=(const SharedResourcesAcquirer &)=default
void temporaryUnlock(FUNC iFunc)
~SharedResourcesAcquirer()=default
SharedResourcesAcquirer(std::vector< std::recursive_mutex * > &&iResources)
SharedResourcesAcquirer()=default