Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-12-22 01:53:27

0001 #ifndef FWCore_Framework_ESSourceDataProxyConcurrentBase_h
0002 #define FWCore_Framework_ESSourceDataProxyConcurrentBase_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     FWCore/Framework
0006 // Class  :     ESSourceDataProxyConcurrentBase
0007 //
0008 /**\class ESSourceDataProxyConcurrentBase ESSourceDataProxyConcurrentBase.h "FWCore/Framework/interface/ESSourceDataProxyConcurrentBase.h"
0009 
0010  Description: Base class for DataProxies for ESSources that require no synchronization
0011 
0012  Usage:
0013     The ESSourceDataProxyConcurrentBase allows DataProxies from the same ESSource to be called concurrently.
0014 
0015     NOTE: if inheriting classes override `void invalidateCache()` they must be sure to call this classes
0016     implementation as part of the call.
0017 
0018 */
0019 //
0020 // Original Author:  Chris Jones
0021 //         Created:  14/05/2020
0022 //
0023 
0024 // system include files
0025 
0026 // user include files
0027 #include "FWCore/Framework/interface/ESSourceDataProxyBase.h"
0028 
0029 // forward declarations
0030 
0031 namespace edm::eventsetup {
0032   class ESSourceDataProxyConcurrentBase : public ESSourceDataProxyBase {
0033   public:
0034     ESSourceDataProxyConcurrentBase() {}
0035 
0036   private:
0037     void prefetchAsyncImpl(edm::WaitingTaskHolder iTask,
0038                            edm::eventsetup::EventSetupRecordImpl const& iES,
0039                            edm::eventsetup::DataKey const& iKey,
0040                            edm::EventSetupImpl const*,
0041                            edm::ServiceToken const&,
0042                            edm::ESParentContext const&) final;
0043 
0044     // ---------- member data --------------------------------
0045   };
0046 }  // namespace edm::eventsetup
0047 #endif