#include <ESModuleCallingContext.h>
Public Types | |
enum | State { State::kPrefetching, State::kRunning, State::kInvalid } |
using | Type = ESParentContext::Type |
Public Member Functions | |
std::uintptr_t | callID () const |
edm::eventsetup::ComponentDescription const * | componentDescription () const |
unsigned | depth () const |
ESModuleCallingContext (edm::eventsetup::ComponentDescription const *moduleDescription, std::uintptr_t id) | |
ESModuleCallingContext (edm::eventsetup::ComponentDescription const *moduleDescription, std::uintptr_t id, State state, ESParentContext const &parent) | |
ESModuleCallingContext const * | esmoduleCallingContext () const |
ModuleCallingContext const * | getTopModuleCallingContext () const |
ModuleCallingContext const * | moduleCallingContext () const |
ESParentContext const & | parent () const |
void | setContext (State state, ESParentContext const &parent) |
void | setState (State state) |
State | state () const |
Type | type () const |
Private Attributes | |
edm::eventsetup::ComponentDescription const * | componentDescription_ |
std::uintptr_t | id_ |
ESParentContext | parent_ |
State | state_ |
Description: This is intended primarily to be passed to Services as an argument to their callback functions.
Usage:
Definition at line 28 of file ESModuleCallingContext.h.
Definition at line 30 of file ESModuleCallingContext.h.
|
strong |
Enumerator | |
---|---|
kPrefetching | |
kRunning | |
kInvalid |
Definition at line 32 of file ESModuleCallingContext.h.
edm::ESModuleCallingContext::ESModuleCallingContext | ( | edm::eventsetup::ComponentDescription const * | moduleDescription, |
std::uintptr_t | id | ||
) |
Definition at line 10 of file ESModuleCallingContext.cc.
edm::ESModuleCallingContext::ESModuleCallingContext | ( | edm::eventsetup::ComponentDescription const * | moduleDescription, |
std::uintptr_t | id, | ||
State | state, | ||
ESParentContext const & | parent | ||
) |
Definition at line 14 of file ESModuleCallingContext.cc.
|
inline |
Returns a unique id for this module to differentiate possibly concurrent calls to the module. The value returned may be large so not appropriate for an index lookup.
Definition at line 55 of file ESModuleCallingContext.h.
References id_.
Referenced by edm::moduleAlloc::monitor_file_utilities::module_callid(), and edm::service::monitor_file_utilities::module_callid().
|
inline |
Definition at line 49 of file ESModuleCallingContext.h.
References componentDescription_.
Referenced by edm::exceptionContext(), edm::moduleAlloc::monitor_file_utilities::module_id(), edm::service::monitor_file_utilities::module_id(), edm::service::Tracer::postESModule(), edm::service::Tracer::postESModuleAcquire(), edm::service::Tracer::postESModulePrefetching(), edm::service::Tracer::preESModule(), edm::service::Tracer::preESModuleAcquire(), and edm::service::Tracer::preESModulePrefetching().
unsigned edm::ESModuleCallingContext::depth | ( | void | ) | const |
Definition at line 33 of file ESModuleCallingContext.cc.
References edm::ModuleCallingContext::depth(), esmoduleCallingContext(), edm::ESParentContext::kESModule, moduleCallingContext(), and type().
Referenced by edm::service::Tracer::postESModule(), edm::service::Tracer::postESModuleAcquire(), edm::service::Tracer::postESModulePrefetching(), edm::service::Tracer::preESModule(), edm::service::Tracer::preESModuleAcquire(), and edm::service::Tracer::preESModulePrefetching().
|
inline |
Definition at line 58 of file ESModuleCallingContext.h.
References edm::ESParentContext::esmoduleCallingContext(), and parent_.
Referenced by depth(), edm::exceptionContext(), and getTopModuleCallingContext().
ModuleCallingContext const * edm::ESModuleCallingContext::getTopModuleCallingContext | ( | ) | const |
Definition at line 25 of file ESModuleCallingContext.cc.
References esmoduleCallingContext(), edm::ModuleCallingContext::getTopModuleCallingContext(), edm::ESParentContext::kESModule, moduleCallingContext(), and type().
|
inline |
Definition at line 57 of file ESModuleCallingContext.h.
References edm::ESParentContext::moduleCallingContext(), and parent_.
Referenced by depth(), edm::exceptionContext(), and getTopModuleCallingContext().
|
inline |
Definition at line 56 of file ESModuleCallingContext.h.
References parent_.
Referenced by setContext().
void edm::ESModuleCallingContext::setContext | ( | State | state, |
ESParentContext const & | parent | ||
) |
Definition at line 20 of file ESModuleCallingContext.cc.
References parent(), parent_, state(), and state_.
Referenced by edm::eventsetup::CallbackBase< T, TProduceFunc, TProduceReturn, TRecord, TDecorator >::prefetchAsyncImpl().
|
inline |
Definition at line 47 of file ESModuleCallingContext.h.
References state(), and state_.
Referenced by edm::eventsetup::CallbackExternalWork< T, TAcquireFunc, TAcquireReturn, TProduceFunc, TProduceReturn, TRecord, TDecorator >::makeAcquireTask(), and edm::eventsetup::CallbackBase< T, TProduceFunc, TProduceReturn, TRecord, TDecorator >::makeProduceTask().
|
inline |
Definition at line 50 of file ESModuleCallingContext.h.
References state_.
Referenced by edm::exceptionContext(), setContext(), and setState().
|
inline |
Definition at line 51 of file ESModuleCallingContext.h.
References parent_, and edm::ESParentContext::type().
Referenced by depth(), edm::exceptionContext(), and getTopModuleCallingContext().
|
private |
Definition at line 69 of file ESModuleCallingContext.h.
Referenced by componentDescription().
|
private |
Definition at line 71 of file ESModuleCallingContext.h.
Referenced by callID().
|
private |
Definition at line 70 of file ESModuleCallingContext.h.
Referenced by esmoduleCallingContext(), moduleCallingContext(), parent(), setContext(), and type().
|
private |
Definition at line 72 of file ESModuleCallingContext.h.
Referenced by setContext(), setState(), and state().