CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes | Friends
edm::SharedResourcesAcquirer Class Reference

#include <SharedResourcesAcquirer.h>

Public Member Functions

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...
 
SharedResourcesAcquireroperator= (const SharedResourcesAcquirer &)=delete
 
SharedResourcesAcquireroperator= (SharedResourcesAcquirer &&)=default
 
SerialTaskQueueChainserialQueueChain () const
 
 SharedResourcesAcquirer ()=default
 
 SharedResourcesAcquirer (const SharedResourcesAcquirer &)=delete
 
 SharedResourcesAcquirer (SharedResourcesAcquirer &&)=default
 
 SharedResourcesAcquirer (std::vector< std::shared_ptr< SerialTaskQueue >> iQueues)
 
 ~SharedResourcesAcquirer ()=default
 

Private Attributes

SerialTaskQueueChain m_queues
 

Friends

class ::testSharedResourcesRegistry
 

Detailed Description

Definition at line 34 of file SharedResourcesAcquirer.h.

Constructor & Destructor Documentation

◆ SharedResourcesAcquirer() [1/4]

edm::SharedResourcesAcquirer::SharedResourcesAcquirer ( )
default

◆ SharedResourcesAcquirer() [2/4]

edm::SharedResourcesAcquirer::SharedResourcesAcquirer ( std::vector< std::shared_ptr< SerialTaskQueue >>  iQueues)
inlineexplicit

Definition at line 39 of file SharedResourcesAcquirer.h.

40  : m_queues(std::move(iQueues)) {}

◆ SharedResourcesAcquirer() [3/4]

edm::SharedResourcesAcquirer::SharedResourcesAcquirer ( SharedResourcesAcquirer &&  )
default

◆ SharedResourcesAcquirer() [4/4]

edm::SharedResourcesAcquirer::SharedResourcesAcquirer ( const SharedResourcesAcquirer )
delete

◆ ~SharedResourcesAcquirer()

edm::SharedResourcesAcquirer::~SharedResourcesAcquirer ( )
default

Member Function Documentation

◆ numberOfResources()

size_t edm::SharedResourcesAcquirer::numberOfResources ( ) const
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 52 of file SharedResourcesAcquirer.h.

52 { return m_queues.numberOfQueues(); }

References m_queues, and edm::SerialTaskQueueChain::numberOfQueues().

◆ operator=() [1/2]

SharedResourcesAcquirer& edm::SharedResourcesAcquirer::operator= ( const SharedResourcesAcquirer )
delete

◆ operator=() [2/2]

SharedResourcesAcquirer& edm::SharedResourcesAcquirer::operator= ( SharedResourcesAcquirer &&  )
default

◆ serialQueueChain()

SerialTaskQueueChain& edm::SharedResourcesAcquirer::serialQueueChain ( ) const
inline

Friends And Related Function Documentation

◆ ::testSharedResourcesRegistry

friend class ::testSharedResourcesRegistry
friend

Definition at line 36 of file SharedResourcesAcquirer.h.

Member Data Documentation

◆ m_queues

SerialTaskQueueChain edm::SharedResourcesAcquirer::m_queues
mutableprivate

Definition at line 59 of file SharedResourcesAcquirer.h.

Referenced by numberOfResources(), and serialQueueChain().

edm::SerialTaskQueueChain::numberOfQueues
std::size_t numberOfQueues() const
Definition: SerialTaskQueueChain.h:71
eostools.move
def move(src, dest)
Definition: eostools.py:511
edm::SharedResourcesAcquirer::m_queues
SerialTaskQueueChain m_queues
Definition: SharedResourcesAcquirer.h:59