File indexing completed on 2024-05-11 03:34:12
0001 #ifndef FWCore_Framework_ESSourceProductResolverNonConcurrentBase_h
0002 #define FWCore_Framework_ESSourceProductResolverNonConcurrentBase_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027 #include <mutex>
0028
0029
0030 #include "FWCore/Framework/interface/ESSourceProductResolverBase.h"
0031 #include "FWCore/Concurrency/interface/SerialTaskQueue.h"
0032
0033
0034
0035 namespace edm::eventsetup {
0036 class ESSourceProductResolverNonConcurrentBase : public ESSourceProductResolverBase {
0037 public:
0038 ESSourceProductResolverNonConcurrentBase(edm::SerialTaskQueue* iQueue, std::mutex* iMutex)
0039 : m_queue(iQueue), m_mutex(iMutex) {}
0040
0041 edm::SerialTaskQueue* queue() const { return m_queue; }
0042 std::mutex* mutex() const { return m_mutex; }
0043
0044 private:
0045 void prefetchAsyncImpl(edm::WaitingTaskHolder iTask,
0046 edm::eventsetup::EventSetupRecordImpl const& iES,
0047 edm::eventsetup::DataKey const& iKey,
0048 edm::EventSetupImpl const*,
0049 edm::ServiceToken const&,
0050 edm::ESParentContext const&) noexcept final;
0051
0052
0053
0054 edm::SerialTaskQueue* m_queue;
0055 std::mutex* m_mutex;
0056 };
0057 }
0058 #endif