#include <Callback.h>
Public Types | |
using | method_type = TReturn(T ::*)(const TRecord &) |
Public Member Functions | |
Callback (const Callback &)=delete | |
Callback (T *iProd, method_type iMethod, unsigned int iID, const TDecorator &iDec=TDecorator()) | |
Callback * | clone () |
ESProxyIndex const * | getTokenIndices () const |
template<class DataT > | |
void | holdOntoPointer (DataT *iData) |
void | newRecordComing () |
const Callback & | operator= (const Callback &)=delete |
void | prefetchAsync (WaitingTaskHolder iTask, EventSetupRecordImpl const *iRecord, EventSetupImpl const *iEventSetupImpl, ServiceToken const &token, ESParentContext const &iParent) |
template<class RemainingContainerT , class DataT , class ProductsT > | |
void | setData (ProductsT &iProducts) |
void | storeReturnedValues (TReturn iReturn) |
unsigned int | transitionID () const |
Private Member Functions | |
bool | handleMayGet (EventSetupRecordImpl const *iRecord, EventSetupImpl const *iEventSetupImpl) |
void | prefetchNeededDataAsync (WaitingTaskHolder task, EventSetupImpl const *iImpl, ESProxyIndex const *proxies, edm::ServiceToken const &token) const |
void | runProducerAsync (tbb::task_group *iGroup, std::exception_ptr const *iExcept, EventSetupRecordImpl const *iRecord, EventSetupImpl const *iEventSetupImpl, ServiceToken const &token) |
Private Attributes | |
ESModuleCallingContext | callingContext_ |
TDecorator | decorator_ |
const unsigned int | id_ |
method_type | method_ |
std::optional< std::vector< ESProxyIndex > > | postMayGetProxies_ |
edm::propagate_const< T * > | producer_ |
std::array< void *, produce::size< TReturn >::value > | proxyData_ |
edm::WaitingTaskList | taskList_ |
std::atomic< bool > | wasCalledForThisRecord_ |
Description: Functional object used as the 'callback' for the CallbackProxy
Usage: <usage>
Definition at line 54 of file Callback.h.
using edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::method_type = TReturn (T ::*)(const TRecord&) |
Definition at line 56 of file Callback.h.
|
inline |
Definition at line 58 of file Callback.h.
Referenced by edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::clone().
|
delete |
|
inline |
Definition at line 67 of file Callback.h.
References edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::Callback(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::decorator_, edm::propagate_const< T >::get(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::id_, edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::method_, and edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::producer_.
|
inline |
Definition at line 146 of file Callback.h.
References edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::id_, and edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::producer_.
Referenced by edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::handleMayGet(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::prefetchAsync(), and edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::runProducerAsync().
|
inlineprivate |
Definition at line 163 of file Callback.h.
References edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::callingContext_, edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::getTokenIndices(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::id_, edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::postMayGetProxies_, edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::producer_, and edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::transitionID().
Referenced by edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::prefetchAsync().
|
inline |
Definition at line 121 of file Callback.h.
References edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::proxyData_.
|
inline |
Definition at line 140 of file Callback.h.
References edm::WaitingTaskList::reset(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::taskList_, and edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::wasCalledForThisRecord_.
|
delete |
|
inline |
Definition at line 72 of file Callback.h.
References edm::eventsetup::EventSetupRecordImpl::activityRegistry(), edm::WaitingTaskList::add(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::callingContext_, edm::signalslot::Signal< T >::emit(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::getTokenIndices(), edm::WaitingTaskHolder::group(), watchdog::group, edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::handleMayGet(), edm::eventsetup::EventSetupRecordImpl::key(), edm::ESModuleCallingContext::kPrefetching, edm::ServiceWeakToken::lock(), edm::make_waiting_task(), edm::ActivityRegistry::preESModulePrefetchingSignal_, edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::prefetchNeededDataAsync(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::producer_, edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::runProducerAsync(), edm::ESModuleCallingContext::setContext(), TrackValidation_cff::task, edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::taskList_, unpackBuffers-CaloStage2::token, UNLIKELY, and edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::wasCalledForThisRecord_.
|
inlineprivate |
Definition at line 149 of file Callback.h.
References edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::callingContext_, edm::EventSetupImpl::findImpl(), mps_fire::i, edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::id_, dqmiodumpmetadata::n, edm::eventsetup::EventSetupRecordImpl::prefetchAsync(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::producer_, TrackValidation_cff::task, and unpackBuffers-CaloStage2::token.
Referenced by edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::prefetchAsync().
|
inlineprivate |
Definition at line 172 of file Callback.h.
References edm::eventsetup::EventSetupRecordImpl::activityRegistry(), cms::Exception::addContext(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::callingContext_, edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::decorator_, edmLumisInFiles::description, edm::WaitingTaskList::doneWaiting(), edm::signalslot::Signal< T >::emit(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::getTokenIndices(), edm::eventsetup::EventSetupRecordImpl::key(), edm::ESModuleCallingContext::kRunning, edm::ServiceWeakToken::lock(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::method_, edm::ActivityRegistry::postESModulePrefetchingSignal_, edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::postMayGetProxies_, edm::ActivityRegistry::preESModuleSignal_, edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::producer_, edm::ESModuleCallingContext::setState(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::storeReturnedValues(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::taskList_, unpackBuffers-CaloStage2::token, edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::transitionID(), and edm::convertException::wrap().
Referenced by edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::prefetchAsync().
|
inline |
Definition at line 131 of file Callback.h.
References edm::eventsetup::moveFromTo(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::proxyData_, and groupFilesInBlocks::temp.
|
inline |
Definition at line 125 of file Callback.h.
Referenced by edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::runProducerAsync().
|
inline |
Definition at line 145 of file Callback.h.
References edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::id_.
Referenced by edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::handleMayGet(), and edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::runProducerAsync().
|
private |
Definition at line 224 of file Callback.h.
Referenced by edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::handleMayGet(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::prefetchAsync(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::prefetchNeededDataAsync(), and edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::runProducerAsync().
|
private |
Definition at line 230 of file Callback.h.
Referenced by edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::clone(), and edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::runProducerAsync().
|
private |
Definition at line 228 of file Callback.h.
Referenced by edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::clone(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::getTokenIndices(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::handleMayGet(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::prefetchNeededDataAsync(), and edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::transitionID().
|
private |
Definition at line 226 of file Callback.h.
Referenced by edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::clone(), and edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::runProducerAsync().
|
private |
Definition at line 222 of file Callback.h.
Referenced by edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::handleMayGet(), and edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::runProducerAsync().
|
private |
Definition at line 223 of file Callback.h.
Referenced by edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::clone(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::getTokenIndices(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::handleMayGet(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::prefetchAsync(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::prefetchNeededDataAsync(), and edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::runProducerAsync().
|
private |
Definition at line 221 of file Callback.h.
Referenced by edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::holdOntoPointer(), and edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::setData().
|
private |
Definition at line 225 of file Callback.h.
Referenced by edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::newRecordComing(), edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::prefetchAsync(), and edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::runProducerAsync().
|
private |
Definition at line 229 of file Callback.h.
Referenced by edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::newRecordComing(), and edm::eventsetup::Callback< T, TReturn, TRecord, TDecorator >::prefetchAsync().