Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Services to see how many threads #1471

Merged
merged 1 commit into from Nov 15, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion FWCore/Framework/src/EventProcessor.cc
Expand Up @@ -568,7 +568,8 @@ namespace edm {

service::SystemBounds bounds(preallocations_.numberOfStreams(),
preallocations_.numberOfLuminosityBlocks(),
preallocations_.numberOfRuns());
preallocations_.numberOfRuns(),
preallocations_.numberOfThreads());
actReg_->preallocateSignal_(bounds);
//NOTE: This implementation assumes 'Job' means one call
// the EventProcessor::run
Expand Down
8 changes: 6 additions & 2 deletions FWCore/ServiceRegistry/interface/SystemBounds.h
Expand Up @@ -32,22 +32,26 @@ namespace edm {
public:
SystemBounds(unsigned int iNStreams,
unsigned int iNLumis,
unsigned int iNRuns) :
unsigned int iNRuns,
unsigned int iNThreads) :
m_nStreams(iNStreams),
m_nLumis(iNLumis),
m_nRuns(iNRuns) {}
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;
};

}
Expand Down