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  {
35  public:
36  friend class ::testSharedResourcesRegistry;
37 
38  SharedResourcesAcquirer() = default;
39  explicit SharedResourcesAcquirer(std::vector<std::shared_ptr<SerialTaskQueue>> iQueues):
40  m_queues(std::move(iQueues)){}
41 
45 
47  ~SharedResourcesAcquirer() = default;
48 
49  // ---------- member functions ---------------------------
50 
52  size_t numberOfResources() const { return m_queues.numberOfQueues();}
53 
55  private:
56 
57  // ---------- member data --------------------------------
59  };
60 }
61 
62 
63 #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