CMS 3D CMS Logo

SharedResourcesAcquirer.h
Go to the documentation of this file.
1 #ifndef FWCore_Framework_SharedResourcesAcquirer_h
2 #define FWCore_Framework_SharedResourcesAcquirer_h
3 // -*- C++ -*-
4 //
5 // Package: FWCore/Framework
6 // Class : SharedResourcesAcquirer
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Sun, 06 Oct 2013 19:43:26 GMT
19 //
20 
21 // system include files
23 
24 // user include files
25 
26 // forward declarations
27 class testSharedResourcesRegistry;
28 
29 namespace edm {
31  class SerialTaskQueue;
32 
34  public:
35  friend class ::testSharedResourcesRegistry;
36 
37  SharedResourcesAcquirer() = default;
38  explicit SharedResourcesAcquirer(std::vector<std::shared_ptr<SerialTaskQueue>> iQueues)
39  : m_queues(std::move(iQueues)) {}
40 
44 
46  ~SharedResourcesAcquirer() = default;
47 
48  // ---------- member functions ---------------------------
49 
51  size_t numberOfResources() const { return m_queues.numberOfQueues(); }
52 
54 
55  private:
56  // ---------- member data --------------------------------
58  };
59 } // namespace edm
60 
61 #endif
size_t numberOfResources() const
The number returned may be less than the number of resources requested if a resource is only used by ...
SerialTaskQueueChain & serialQueueChain() const
std::size_t numberOfQueues() const
SharedResourcesAcquirer & operator=(const SharedResourcesAcquirer &)=delete
SharedResourcesAcquirer(std::vector< std::shared_ptr< SerialTaskQueue >> iQueues)
HLT enums.
def move(src, dest)
Definition: eostools.py:511