1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
#ifndef FWCore_ServiceRegistry_SystemBounds_h
#define FWCore_ServiceRegistry_SystemBounds_h
// -*- C++ -*-
//
// Package: FWCore/ServiceRegistry
// Class : SystemBounds
//
/**\class SystemBounds SystemBounds.h "SystemBounds.h"
Description: [one line class summary]
Usage:
<usage>
*/
//
// Original Author: Chris Jones
// Created: Sun, 08 Sep 2013 16:16:25 GMT
//
// system include files
// user include files
// forward declarations
namespace edm {
namespace service {
class SystemBounds {
public:
SystemBounds(unsigned int iNStreams, unsigned int iNLumis, unsigned int iNRuns, unsigned int iNThreads)
: m_nStreams(iNStreams), m_nLumis(iNLumis), m_nRuns(iNRuns), m_nThreads(iNThreads) {}
// ---------- const member functions ---------------------
unsigned int maxNumberOfStreams() const { return m_nStreams; }
unsigned int maxNumberOfConcurrentRuns() const { return m_nRuns; }
unsigned int maxNumberOfConcurrentLuminosityBlocks() const { return m_nLumis; }
unsigned int maxNumberOfThreads() const { return m_nThreads; }
private:
// ---------- member data --------------------------------
unsigned int m_nStreams;
unsigned int m_nLumis;
unsigned int m_nRuns;
unsigned int m_nThreads;
};
} // namespace service
} // namespace edm
#endif
|