Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-05-11 03:34:12

0001 #ifndef FWCore_Framework_ESSourceProductResolverConcurrentBase_h
0002 #define FWCore_Framework_ESSourceProductResolverConcurrentBase_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     FWCore/Framework
0006 // Class  :     ESSourceProductResolverConcurrentBase
0007 //
0008 /**\class ESSourceProductResolverConcurrentBase ESSourceProductResolverConcurrentBase.h "FWCore/Framework/interface/ESSourceProductResolverConcurrentBase.h"
0009 
0010  Description: Base class for DataProxies for ESSources that require no synchronization
0011 
0012  Usage:
0013     The ESSourceProductResolverConcurrentBase 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/ESSourceProductResolverBase.h"
0028 
0029 // forward declarations
0030 
0031 namespace edm::eventsetup {
0032   class ESSourceProductResolverConcurrentBase : public ESSourceProductResolverBase {
0033   public:
0034     ESSourceProductResolverConcurrentBase() {}
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&) noexcept final;
0043 
0044     // ---------- member data --------------------------------
0045   };
0046 }  // namespace edm::eventsetup
0047 #endif