#include <Callback.h>
Public Member Functions | |
Callback (T *iProd, TFunc iFunc, unsigned int iID, const TDecorator &iDec=TDecorator()) | |
Callback (T *iProd, std::shared_ptr< TFunc > iFunc, unsigned int iID, const TDecorator &iDec=TDecorator()) | |
Callback (const Callback &)=delete | |
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 (oneapi::tbb::task_group *iGroup, std::exception_ptr const *iExcept, EventSetupRecordImpl const *iRecord, EventSetupImpl const *iEventSetupImpl, ServiceToken const &token) |
Private Attributes | |
ESModuleCallingContext | callingContext_ |
TDecorator | decorator_ |
std::shared_ptr< TFunc > | function_ |
const unsigned int | id_ |
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 58 of file Callback.h.
|
inline |
Definition at line 60 of file Callback.h.
Referenced by edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::clone().
|
inline |
Definition at line 63 of file Callback.h.
|
delete |
|
inline |
Definition at line 72 of file Callback.h.
References edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::Callback(), edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::decorator_, edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::function_, edm::propagate_const< T >::get(), edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::id_, and edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::producer_.
|
inline |
Definition at line 151 of file Callback.h.
References edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::id_, and edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::producer_.
Referenced by edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::handleMayGet(), edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::prefetchAsync(), and edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::runProducerAsync().
|
inlineprivate |
Definition at line 168 of file Callback.h.
References edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::callingContext_, edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::getTokenIndices(), edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::id_, edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::postMayGetProxies_, edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::producer_, and edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::transitionID().
Referenced by edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::prefetchAsync().
|
inline |
Definition at line 126 of file Callback.h.
References edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::proxyData_.
|
inline |
Definition at line 145 of file Callback.h.
References edm::WaitingTaskList::reset(), edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::taskList_, and edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::wasCalledForThisRecord_.
|
delete |
|
inline |
Definition at line 77 of file Callback.h.
References edm::eventsetup::EventSetupRecordImpl::activityRegistry(), edm::WaitingTaskList::add(), edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::callingContext_, edm::signalslot::Signal< T >::emit(), edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::getTokenIndices(), edm::WaitingTaskHolder::group(), watchdog::group, edm::eventsetup::Callback< T, TFunc, 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, TFunc, TReturn, TRecord, TDecorator >::prefetchNeededDataAsync(), edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::producer_, edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::runProducerAsync(), edm::ESModuleCallingContext::setContext(), TrackValidation_cff::task, edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::taskList_, unpackBuffers-CaloStage2::token, UNLIKELY, and edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::wasCalledForThisRecord_.
|
inlineprivate |
Definition at line 154 of file Callback.h.
References edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::callingContext_, edm::EventSetupImpl::findImpl(), mps_fire::i, edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::id_, dqmiodumpmetadata::n, edm::eventsetup::EventSetupRecordImpl::prefetchAsync(), edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::producer_, TrackValidation_cff::task, and unpackBuffers-CaloStage2::token.
Referenced by edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::prefetchAsync().
|
inlineprivate |
Definition at line 177 of file Callback.h.
References edm::eventsetup::EventSetupRecordImpl::activityRegistry(), edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::callingContext_, edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::decorator_, edm::WaitingTaskList::doneWaiting(), edm::signalslot::Signal< T >::emit(), edm::exceptionContext(), edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::function_, edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::getTokenIndices(), edm::eventsetup::EventSetupRecordImpl::key(), edm::ESModuleCallingContext::kRunning, edm::ServiceWeakToken::lock(), edm::ActivityRegistry::postESModulePrefetchingSignal_, edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::postMayGetProxies_, edm::ActivityRegistry::preESModuleSignal_, edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::producer_, edm::ESModuleCallingContext::setState(), edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::storeReturnedValues(), edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::taskList_, unpackBuffers-CaloStage2::token, edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::transitionID(), and edm::convertException::wrap().
Referenced by edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::prefetchAsync().
|
inline |
Definition at line 136 of file Callback.h.
References edm::eventsetup::moveFromTo(), edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::proxyData_, and groupFilesInBlocks::temp.
|
inline |
Definition at line 130 of file Callback.h.
Referenced by edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::runProducerAsync().
|
inline |
Definition at line 150 of file Callback.h.
References edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::id_.
Referenced by edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::handleMayGet(), and edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::runProducerAsync().
|
private |
Definition at line 226 of file Callback.h.
Referenced by edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::handleMayGet(), edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::prefetchAsync(), edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::prefetchNeededDataAsync(), and edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::runProducerAsync().
|
private |
Definition at line 234 of file Callback.h.
Referenced by edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::clone(), and edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::runProducerAsync().
|
private |
Definition at line 230 of file Callback.h.
Referenced by edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::clone(), and edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::runProducerAsync().
|
private |
Definition at line 232 of file Callback.h.
Referenced by edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::clone(), edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::getTokenIndices(), edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::handleMayGet(), edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::prefetchNeededDataAsync(), and edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::transitionID().
|
private |
Definition at line 224 of file Callback.h.
Referenced by edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::handleMayGet(), and edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::runProducerAsync().
|
private |
Definition at line 225 of file Callback.h.
Referenced by edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::clone(), edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::getTokenIndices(), edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::handleMayGet(), edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::prefetchAsync(), edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::prefetchNeededDataAsync(), and edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::runProducerAsync().
|
private |
Definition at line 223 of file Callback.h.
Referenced by edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::holdOntoPointer(), and edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::setData().
|
private |
Definition at line 227 of file Callback.h.
Referenced by edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::newRecordComing(), edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::prefetchAsync(), and edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::runProducerAsync().
|
private |
Definition at line 233 of file Callback.h.
Referenced by edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::newRecordComing(), and edm::eventsetup::Callback< T, TFunc, TReturn, TRecord, TDecorator >::prefetchAsync().