CMS 3D CMS Logo

SynchronousEventSetupsController.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Framework
4 // Class : SynchronousEventSetupsController
5 //
6 // Implementation:
7 // [Notes on implementation]
8 //
9 // Original Author: Chris Jones, W. David Dagenhart
10 // Created: Wed Jan 12 14:30:44 CST 2011
11 //
12 
14 
16 
17 #include <algorithm>
18 #include <iostream>
19 #include <set>
20 
21 namespace edm {
22  namespace eventsetup {
23 
25  : globalControl_(oneapi::tbb::global_control::max_allowed_parallelism, 1) {}
26 
28  FinalWaitingTask finalTask;
30  do {
31  taskGroup_.wait();
32  } while (not finalTask.done());
33  }
34 
35  std::shared_ptr<EventSetupProvider> SynchronousEventSetupsController::makeProvider(
36  ParameterSet& iPSet, ActivityRegistry* activityRegistry, ParameterSet const* eventSetupPset) {
37  return controller_.makeProvider(iPSet, activityRegistry, eventSetupPset);
38  }
39 
42  }
43 
44  } // namespace eventsetup
45 } // namespace edm
void synchronousEventSetupForInstance(IOVSyncValue const &syncValue, oneapi::tbb::task_group &iGroup, eventsetup::EventSetupsController &espController)
std::shared_ptr< EventSetupProvider > makeProvider(ParameterSet &, ActivityRegistry *, ParameterSet const *eventSetupPset=nullptr)
std::shared_ptr< EventSetupProvider > makeProvider(ParameterSet &, ActivityRegistry *, ParameterSet const *eventSetupPset=nullptr, unsigned int maxConcurrentIOVs=0, bool dumpOptions=false)
bool done() const
Definition: WaitingTask.h:82
void endIOVsAsync(edm::WaitingTaskHolder iEndTask)
HLT enums.