CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
edm::NoProcessProductResolver Class Reference

#include <ProductResolvers.h>

Inheritance diagram for edm::NoProcessProductResolver:
edm::ProductResolverBase

Public Types

typedef ProducedProductResolver::ProductStatus ProductStatus
 

Public Member Functions

void connectTo (ProductResolverBase const &iOther, Principal const *) final
 
bool dataValidFromResolver (unsigned int iProcessingIndex, Principal const &principal, bool iSkipCurrentProcess) const
 
 NoProcessProductResolver (std::vector< ProductResolverIndex > const &matchingHolders, std::vector< bool > const &ambiguous, bool madeAtEnd)
 
void prefetchFailed (unsigned int iProcessingIndex, Principal const &principal, bool iSkipCurrentProcess, std::exception_ptr iExceptPtr) const
 
void tryPrefetchResolverAsync (unsigned int iProcessingIndex, Principal const &principal, bool skipCurrentProcess, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc, ServiceToken token) const
 
- Public Member Functions inherited from edm::ProductResolverBase
BranchDescription const & branchDescription () const
 
std::string const & moduleLabel () const
 
ProductResolverBaseoperator= (ProductResolverBase const &)=delete
 
void prefetchAsync (WaitingTask *waitTask, Principal const &principal, bool skipCurrentProcess, ServiceToken const &token, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc) const
 
std::string const & processName () const
 
ProductID const & productID () const
 
std::string const & productInstanceName () const
 
ProductProvenance const * productProvenancePtr () const
 
bool productResolved () const
 
 ProductResolverBase ()
 
 ProductResolverBase (ProductResolverBase const &)=delete
 
TypeID productType () const
 
bool productUnavailable () const
 
bool productWasDeleted () const
 
bool productWasFetchedAndIsValid (bool iSkipCurrentProcess) const
 
Provenance const * provenance () const
 
bool provenanceAvailable () const
 
void putOrMergeProduct (std::unique_ptr< WrapperBase > edp, MergeableRunProductMetadata const *mergeableRunProductMetadata=nullptr) const
 
void putProduct (std::unique_ptr< WrapperBase > edp) const
 
void resetBranchDescription (std::shared_ptr< BranchDescription const > bd)
 
void resetProductData ()
 
std::string const & resolvedModuleLabel () const
 
Resolution resolveProduct (Principal const &principal, bool skipCurrentProcess, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc) const
 
void retrieveAndMerge (Principal const &principal, MergeableRunProductMetadata const *mergeableRunProductMetadata) const
 
void setMergeableRunProductMetadata (MergeableRunProductMetadata const *mrpm)
 
void setProductID (ProductID const &pid)
 
void setProductProvenanceRetriever (ProductProvenanceRetriever const *provRetriever)
 
virtual void setupUnscheduled (UnscheduledConfigurator const &)
 
bool singleProduct () const
 
StableProvenance const * stableProvenance () const
 
void unsafe_deleteProduct () const
 
bool unscheduledWasNotRun () const
 
void write (std::ostream &os) const
 
virtual ~ProductResolverBase ()
 

Private Member Functions

BranchDescription const & branchDescription_ () const override
 
void prefetchAsync_ (WaitingTask *waitTask, Principal const &principal, bool skipCurrentProcess, ServiceToken const &token, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc) const override
 
ProductProvenance const * productProvenancePtr_ () const override
 
bool productResolved_ () const final
 
bool productUnavailable_ () const override
 
bool productWasDeleted_ () const override
 
bool productWasFetchedAndIsValid_ (bool iSkipCurrentProcess) const override
 
Provenance const * provenance_ () const override
 
void putOrMergeProduct_ (std::unique_ptr< WrapperBase > prod, MergeableRunProductMetadata const *mergeableRunProductMetadata) const final
 
void putProduct_ (std::unique_ptr< WrapperBase > edp) const override
 
void resetBranchDescription_ (std::shared_ptr< BranchDescription const > bd) override
 
void resetProductData_ (bool deleteEarly) override
 
std::string const & resolvedModuleLabel_ () const override
 
Resolution resolveProduct_ (Principal const &principal, bool skipCurrentProcess, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc) const override
 
void setCache (bool skipCurrentProcess, ProductResolverIndex index, std::exception_ptr exceptionPtr) const
 
void setProductID_ (ProductID const &pid) override
 
void setProductProvenanceRetriever_ (ProductProvenanceRetriever const *provRetriever) override
 
bool singleProduct_ () const override
 
Resolution tryResolver (unsigned int index, Principal const &principal, bool skipCurrentProcess, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc) const
 
bool unscheduledWasNotRun_ () const override
 
unsigned int unsetIndexValue () const
 

Private Attributes

std::vector< bool > ambiguous_
 
std::atomic< unsigned int > lastCheckIndex_
 
std::atomic< unsigned int > lastSkipCurrentCheckIndex_
 
const bool madeAtEnd_
 
std::vector< ProductResolverIndexmatchingHolders_
 
std::atomic< bool > prefetchRequested_
 
std::atomic< bool > skippingPrefetchRequested_
 
WaitingTaskList skippingWaitingTasks_
 
WaitingTaskList waitingTasks_
 

Detailed Description

Definition at line 431 of file ProductResolvers.h.

Member Typedef Documentation

◆ ProductStatus

Definition at line 433 of file ProductResolvers.h.

Constructor & Destructor Documentation

◆ NoProcessProductResolver()

edm::NoProcessProductResolver::NoProcessProductResolver ( std::vector< ProductResolverIndex > const &  matchingHolders,
std::vector< bool > const &  ambiguous,
bool  madeAtEnd 
)

Definition at line 855 of file ProductResolvers.cc.

858  : matchingHolders_(matchingHolders),
859  ambiguous_(ambiguous),
862  prefetchRequested_(false),
864  madeAtEnd_{madeAtEnd} {
865  assert(ambiguous_.size() == matchingHolders_.size());
866  }

Member Function Documentation

◆ branchDescription_()

BranchDescription const & edm::NoProcessProductResolver::branchDescription_ ( ) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1145 of file ProductResolvers.cc.

1145  {
1147  << "NoProcessProductResolver::branchDescription_() not implemented and should never be called.\n"
1148  << "Contact a Framework developer\n";
1149  }

References Exception, and edm::errors::LogicError.

◆ connectTo()

void edm::NoProcessProductResolver::connectTo ( ProductResolverBase const &  iOther,
Principal const *   
)
finalvirtual

Implements edm::ProductResolverBase.

Definition at line 1163 of file ProductResolvers.cc.

1163  {
1165  << "NoProcessProductResolver::connectTo() not implemented and should never be called.\n"
1166  << "Contact a Framework developer\n";
1167  }

References Exception, and edm::errors::LogicError.

◆ dataValidFromResolver()

bool edm::NoProcessProductResolver::dataValidFromResolver ( unsigned int  iProcessingIndex,
Principal const &  principal,
bool  iSkipCurrentProcess 
) const

Definition at line 1020 of file ProductResolvers.cc.

1022  {
1023  std::vector<unsigned int> const& lookupProcessOrder = principal.lookupProcessOrder();
1024  auto k = lookupProcessOrder[iProcessingIndex];
1025  ProductResolverBase const* productResolver = principal.getProductResolverByIndex(matchingHolders_[k]);
1026 
1027  if (productResolver->productWasFetchedAndIsValid(iSkipCurrentProcess)) {
1028  setCache(iSkipCurrentProcess, k, nullptr);
1029  return true;
1030  }
1031  return false;
1032  }

References edm::Principal::getProductResolverByIndex(), dqmdumpme::k, edm::Principal::lookupProcessOrder(), matchingHolders_, edm::ProductResolverBase::productWasFetchedAndIsValid(), and setCache().

◆ prefetchAsync_()

void edm::NoProcessProductResolver::prefetchAsync_ ( WaitingTask waitTask,
Principal const &  principal,
bool  skipCurrentProcess,
ServiceToken const &  token,
SharedResourcesAcquirer sra,
ModuleCallingContext const *  mcc 
) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 924 of file ProductResolvers.cc.

929  {
930  bool timeToMakeAtEnd = true;
931  if (madeAtEnd_ and mcc) {
932  timeToMakeAtEnd = mcc->parent().isAtEndTransition();
933  }
934 
935  //If timeToMakeAtEnd is false, then it is equivalent to skipping the current process
936  if (not skipCurrentProcess and timeToMakeAtEnd) {
937  //need to try changing prefetchRequested_ before adding to waitingTasks_
938  bool expected = false;
939  bool prefetchRequested = prefetchRequested_.compare_exchange_strong(expected, true);
940  waitingTasks_.add(waitTask);
941 
942  if (prefetchRequested) {
943  //we are the first thread to request
944  tryPrefetchResolverAsync(0, principal, false, sra, mcc, token);
945  }
946  } else {
947  skippingWaitingTasks_.add(waitTask);
948  bool expected = false;
949  if (skippingPrefetchRequested_.compare_exchange_strong(expected, true)) {
950  //we are the first thread to request
951  tryPrefetchResolverAsync(0, principal, true, sra, mcc, token);
952  }
953  }
954  }

References edm::WaitingTaskList::add(), madeAtEnd_, prefetchRequested_, skippingPrefetchRequested_, skippingWaitingTasks_, unpackBuffers-CaloStage2::token, tryPrefetchResolverAsync(), and waitingTasks_.

◆ prefetchFailed()

void edm::NoProcessProductResolver::prefetchFailed ( unsigned int  iProcessingIndex,
Principal const &  principal,
bool  iSkipCurrentProcess,
std::exception_ptr  iExceptPtr 
) const

Definition at line 1010 of file ProductResolvers.cc.

1013  {
1014  std::vector<unsigned int> const& lookupProcessOrder = principal.lookupProcessOrder();
1015  auto k = lookupProcessOrder[iProcessingIndex];
1016 
1017  setCache(iSkipCurrentProcess, k, iExceptPtr);
1018  }

References dqmdumpme::k, edm::Principal::lookupProcessOrder(), and setCache().

◆ productProvenancePtr_()

ProductProvenance const * edm::NoProcessProductResolver::productProvenancePtr_ ( ) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1082 of file ProductResolvers.cc.

1082 { return nullptr; }

◆ productResolved_()

bool edm::NoProcessProductResolver::productResolved_ ( ) const
finalprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1113 of file ProductResolvers.cc.

1113  {
1115  << "NoProcessProductResolver::productResolved_() not implemented and should never be called.\n"
1116  << "Contact a Framework developer\n";
1117  }

References Exception, and edm::errors::LogicError.

◆ productUnavailable_()

bool edm::NoProcessProductResolver::productUnavailable_ ( ) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1107 of file ProductResolvers.cc.

1107  {
1109  << "NoProcessProductResolver::productUnavailable_() not implemented and should never be called.\n"
1110  << "Contact a Framework developer\n";
1111  }

References Exception, and edm::errors::LogicError.

◆ productWasDeleted_()

bool edm::NoProcessProductResolver::productWasDeleted_ ( ) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1119 of file ProductResolvers.cc.

1119  {
1121  << "NoProcessProductResolver::productWasDeleted_() not implemented and should never be called.\n"
1122  << "Contact a Framework developer\n";
1123  }

References Exception, and edm::errors::LogicError.

◆ productWasFetchedAndIsValid_()

bool edm::NoProcessProductResolver::productWasFetchedAndIsValid_ ( bool  iSkipCurrentProcess) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1125 of file ProductResolvers.cc.

1125  {
1127  << "NoProcessProductResolver::productWasFetchedAndIsValid_() not implemented and should never be called.\n"
1128  << "Contact a Framework developer\n";
1129  }

References Exception, and edm::errors::LogicError.

◆ provenance_()

Provenance const * edm::NoProcessProductResolver::provenance_ ( ) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1157 of file ProductResolvers.cc.

1157  {
1159  << "NoProcessProductResolver::provenance_() not implemented and should never be called.\n"
1160  << "Contact a Framework developer\n";
1161  }

References Exception, and edm::errors::LogicError.

◆ putOrMergeProduct_()

void edm::NoProcessProductResolver::putOrMergeProduct_ ( std::unique_ptr< WrapperBase prod,
MergeableRunProductMetadata const *  mergeableRunProductMetadata 
) const
finalprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1137 of file ProductResolvers.cc.

1138  {
1140  << "NoProcessProductResolver::putOrMergeProduct_(std::unique_ptr<WrapperBase> edp, MergeableRunProductMetadata "
1141  "const*) not implemented and should never be called.\n"
1142  << "Contact a Framework developer\n";
1143  }

References Exception, and edm::errors::LogicError.

◆ putProduct_()

void edm::NoProcessProductResolver::putProduct_ ( std::unique_ptr< WrapperBase edp) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1131 of file ProductResolvers.cc.

1131  {
1133  << "NoProcessProductResolver::putProduct_() not implemented and should never be called.\n"
1134  << "Contact a Framework developer\n";
1135  }

References Exception, and edm::errors::LogicError.

◆ resetBranchDescription_()

void edm::NoProcessProductResolver::resetBranchDescription_ ( std::shared_ptr< BranchDescription const >  bd)
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1151 of file ProductResolvers.cc.

1151  {
1153  << "NoProcessProductResolver::resetBranchDescription_() not implemented and should never be called.\n"
1154  << "Contact a Framework developer\n";
1155  }

References Exception, and edm::errors::LogicError.

◆ resetProductData_()

void edm::NoProcessProductResolver::resetProductData_ ( bool  deleteEarly)
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1086 of file ProductResolvers.cc.

1086  {
1087  // This function should never receive 'true'. On the other hand,
1088  // nothing should break if a 'true' is passed, because
1089  // NoProcessProductResolver just forwards the resolve
1090  const auto resetValue = unsetIndexValue();
1091  lastCheckIndex_ = resetValue;
1092  lastSkipCurrentCheckIndex_ = resetValue;
1093  prefetchRequested_ = false;
1095  waitingTasks_.reset();
1097  }

References lastCheckIndex_, lastSkipCurrentCheckIndex_, prefetchRequested_, edm::WaitingTaskList::reset(), skippingPrefetchRequested_, skippingWaitingTasks_, unsetIndexValue(), and waitingTasks_.

◆ resolvedModuleLabel_()

std::string const& edm::NoProcessProductResolver::resolvedModuleLabel_ ( ) const
inlineoverrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 481 of file ProductResolvers.h.

481 { return moduleLabel(); }

References edm::ProductResolverBase::moduleLabel().

◆ resolveProduct_()

ProductResolverBase::Resolution edm::NoProcessProductResolver::resolveProduct_ ( Principal const &  principal,
bool  skipCurrentProcess,
SharedResourcesAcquirer sra,
ModuleCallingContext const *  mcc 
) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 877 of file ProductResolvers.cc.

880  {
881  //See if we've already cached which Resolver we should call or if
882  // we know it is ambiguous
883  const unsigned int choiceSize = ambiguous_.size();
884 
885  //madeAtEnd_==true and not at end transition is the same as skipping the current process
886  if ((not skipCurrentProcess) and (madeAtEnd_ and mcc)) {
887  skipCurrentProcess = not mcc->parent().isAtEndTransition();
888  }
889 
890  unsigned int checkCacheIndex = skipCurrentProcess ? lastSkipCurrentCheckIndex_.load() : lastCheckIndex_.load();
891  if (checkCacheIndex != choiceSize + kUnsetOffset) {
892  if (checkCacheIndex == choiceSize + kAmbiguousOffset) {
894  } else if (checkCacheIndex == choiceSize + kMissingOffset) {
895  return Resolution(nullptr);
896  }
897  return tryResolver(checkCacheIndex, principal, skipCurrentProcess, sra, mcc);
898  }
899 
900  std::atomic<unsigned int>& updateCacheIndex = skipCurrentProcess ? lastSkipCurrentCheckIndex_ : lastCheckIndex_;
901 
902  std::vector<unsigned int> const& lookupProcessOrder = principal.lookupProcessOrder();
903  for (unsigned int k : lookupProcessOrder) {
904  assert(k < ambiguous_.size());
905  if (k == 0)
906  break; // Done
907  if (ambiguous_[k]) {
908  updateCacheIndex = choiceSize + kAmbiguousOffset;
910  }
912  auto resolution = tryResolver(k, principal, skipCurrentProcess, sra, mcc);
913  if (resolution.data() != nullptr) {
914  updateCacheIndex = k;
915  return resolution;
916  }
917  }
918  }
919 
920  updateCacheIndex = choiceSize + kMissingOffset;
921  return Resolution(nullptr);
922  }

References ambiguous_, cms::cuda::assert(), dqmdumpme::k, kAmbiguousOffset, kMissingOffset, kUnsetOffset, lastCheckIndex_, lastSkipCurrentCheckIndex_, edm::Principal::lookupProcessOrder(), madeAtEnd_, edm::ProductResolverBase::Resolution::makeAmbiguous(), matchingHolders_, edm::ProductResolverIndexInvalid, Resolution, L1TObjectsTimingClient_cff::resolution, and tryResolver().

◆ setCache()

void edm::NoProcessProductResolver::setCache ( bool  skipCurrentProcess,
ProductResolverIndex  index,
std::exception_ptr  exceptionPtr 
) const
private

Definition at line 956 of file ProductResolvers.cc.

958  {
959  if (not iSkipCurrentProcess) {
960  lastCheckIndex_ = iIndex;
961  waitingTasks_.doneWaiting(iExceptPtr);
962  } else {
965  }
966  }

References edm::WaitingTaskList::doneWaiting(), lastCheckIndex_, lastSkipCurrentCheckIndex_, skippingWaitingTasks_, and waitingTasks_.

Referenced by dataValidFromResolver(), prefetchFailed(), and tryPrefetchResolverAsync().

◆ setProductID_()

void edm::NoProcessProductResolver::setProductID_ ( ProductID const &  pid)
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1080 of file ProductResolvers.cc.

1080 {}

◆ setProductProvenanceRetriever_()

void edm::NoProcessProductResolver::setProductProvenanceRetriever_ ( ProductProvenanceRetriever const *  provRetriever)
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1078 of file ProductResolvers.cc.

1078 {}

◆ singleProduct_()

bool edm::NoProcessProductResolver::singleProduct_ ( ) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1099 of file ProductResolvers.cc.

1099 { return false; }

◆ tryPrefetchResolverAsync()

void edm::NoProcessProductResolver::tryPrefetchResolverAsync ( unsigned int  iProcessingIndex,
Principal const &  principal,
bool  skipCurrentProcess,
SharedResourcesAcquirer sra,
ModuleCallingContext const *  mcc,
ServiceToken  token 
) const

Definition at line 1034 of file ProductResolvers.cc.

1039  {
1040  std::vector<unsigned int> const& lookupProcessOrder = principal.lookupProcessOrder();
1041  auto index = iProcessingIndex;
1042 
1043  const unsigned int choiceSize = ambiguous_.size();
1044  unsigned int newCacheIndex = choiceSize + kMissingOffset;
1045  while (index < lookupProcessOrder.size()) {
1046  auto k = lookupProcessOrder[index];
1047  if (k == 0) {
1048  break;
1049  }
1050  assert(k < ambiguous_.size());
1051  if (ambiguous_[k]) {
1052  newCacheIndex = choiceSize + kAmbiguousOffset;
1053  break;
1054  }
1056  //make new task
1057 
1058  auto task = new (tbb::task::allocate_root())
1059  TryNextResolverWaitingTask(this, index, &principal, sra, mcc, skipCurrentProcess, token);
1060  task->increment_ref_count();
1061  ProductResolverBase const* productResolver = principal.getProductResolverByIndex(matchingHolders_[k]);
1062 
1063  //Make sure the Services are available on this thread
1065 
1066  productResolver->prefetchAsync(task, principal, skipCurrentProcess, token, sra, mcc);
1067  if (0 == task->decrement_ref_count()) {
1068  tbb::task::spawn(*task);
1069  }
1070  return;
1071  }
1072  ++index;
1073  }
1074  //data product unavailable
1075  setCache(skipCurrentProcess, newCacheIndex, nullptr);
1076  }

References ambiguous_, cms::cuda::assert(), edm::Principal::getProductResolverByIndex(), dqmdumpme::k, kAmbiguousOffset, kMissingOffset, edm::Principal::lookupProcessOrder(), matchingHolders_, edm::ProductResolverBase::prefetchAsync(), edm::ProductResolverIndexInvalid, setCache(), TrackValidation_cff::task, and unpackBuffers-CaloStage2::token.

Referenced by prefetchAsync_().

◆ tryResolver()

ProductResolverBase::Resolution edm::NoProcessProductResolver::tryResolver ( unsigned int  index,
Principal const &  principal,
bool  skipCurrentProcess,
SharedResourcesAcquirer sra,
ModuleCallingContext const *  mcc 
) const
private

Definition at line 868 of file ProductResolvers.cc.

872  {
873  ProductResolverBase const* productResolver = principal.getProductResolverByIndex(matchingHolders_[index]);
874  return productResolver->resolveProduct(principal, skipCurrentProcess, sra, mcc);
875  }

References edm::Principal::getProductResolverByIndex(), matchingHolders_, and edm::ProductResolverBase::resolveProduct().

Referenced by resolveProduct_().

◆ unscheduledWasNotRun_()

bool edm::NoProcessProductResolver::unscheduledWasNotRun_ ( ) const
overrideprivatevirtual

Implements edm::ProductResolverBase.

Definition at line 1101 of file ProductResolvers.cc.

1101  {
1103  << "NoProcessProductResolver::unscheduledWasNotRun_() not implemented and should never be called.\n"
1104  << "Contact a Framework developer\n";
1105  }

References Exception, and edm::errors::LogicError.

◆ unsetIndexValue()

unsigned int edm::NoProcessProductResolver::unsetIndexValue ( ) const
inlineprivate

Definition at line 1084 of file ProductResolvers.cc.

1084 { return ambiguous_.size() + kUnsetOffset; }

References ambiguous_, and kUnsetOffset.

Referenced by resetProductData_().

Member Data Documentation

◆ ambiguous_

std::vector<bool> edm::NoProcessProductResolver::ambiguous_
private

Definition at line 497 of file ProductResolvers.h.

Referenced by resolveProduct_(), tryPrefetchResolverAsync(), and unsetIndexValue().

◆ lastCheckIndex_

std::atomic<unsigned int> edm::NoProcessProductResolver::lastCheckIndex_
mutableprivate

Definition at line 500 of file ProductResolvers.h.

Referenced by resetProductData_(), resolveProduct_(), and setCache().

◆ lastSkipCurrentCheckIndex_

std::atomic<unsigned int> edm::NoProcessProductResolver::lastSkipCurrentCheckIndex_
mutableprivate

Definition at line 501 of file ProductResolvers.h.

Referenced by resetProductData_(), resolveProduct_(), and setCache().

◆ madeAtEnd_

const bool edm::NoProcessProductResolver::madeAtEnd_
private

Definition at line 504 of file ProductResolvers.h.

Referenced by prefetchAsync_(), and resolveProduct_().

◆ matchingHolders_

std::vector<ProductResolverIndex> edm::NoProcessProductResolver::matchingHolders_
private

◆ prefetchRequested_

std::atomic<bool> edm::NoProcessProductResolver::prefetchRequested_
mutableprivate

Definition at line 502 of file ProductResolvers.h.

Referenced by prefetchAsync_(), and resetProductData_().

◆ skippingPrefetchRequested_

std::atomic<bool> edm::NoProcessProductResolver::skippingPrefetchRequested_
mutableprivate

Definition at line 503 of file ProductResolvers.h.

Referenced by prefetchAsync_(), and resetProductData_().

◆ skippingWaitingTasks_

WaitingTaskList edm::NoProcessProductResolver::skippingWaitingTasks_
mutableprivate

Definition at line 499 of file ProductResolvers.h.

Referenced by prefetchAsync_(), resetProductData_(), and setCache().

◆ waitingTasks_

WaitingTaskList edm::NoProcessProductResolver::waitingTasks_
mutableprivate

Definition at line 498 of file ProductResolvers.h.

Referenced by prefetchAsync_(), resetProductData_(), and setCache().

edm::ProductResolverBase::ProductResolverBase
ProductResolverBase()
Definition: ProductResolverBase.cc:14
edm::NoProcessProductResolver::matchingHolders_
std::vector< ProductResolverIndex > matchingHolders_
Definition: ProductResolvers.h:496
edm::NoProcessProductResolver::unsetIndexValue
unsigned int unsetIndexValue() const
Definition: ProductResolvers.cc:1084
edm::errors::LogicError
Definition: EDMException.h:37
edm::NoProcessProductResolver::ambiguous_
std::vector< bool > ambiguous_
Definition: ProductResolvers.h:497
kAmbiguousOffset
static constexpr unsigned int kAmbiguousOffset
Definition: ProductResolvers.cc:29
edm::NoProcessProductResolver::lastSkipCurrentCheckIndex_
std::atomic< unsigned int > lastSkipCurrentCheckIndex_
Definition: ProductResolvers.h:501
edm::WaitingTaskList::add
void add(WaitingTask *)
Adds task to the waiting list.
Definition: WaitingTaskList.cc:90
kMissingOffset
static constexpr unsigned int kMissingOffset
Definition: ProductResolvers.cc:30
cms::cuda::assert
assert(be >=bs)
edm::NoProcessProductResolver::lastCheckIndex_
std::atomic< unsigned int > lastCheckIndex_
Definition: ProductResolvers.h:500
edm::NoProcessProductResolver::tryResolver
Resolution tryResolver(unsigned int index, Principal const &principal, bool skipCurrentProcess, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc) const
Definition: ProductResolvers.cc:868
edm::WaitingTaskList::reset
void reset()
Resets access to the resource so that added tasks will wait.
Definition: WaitingTaskList.cc:52
edm::NoProcessProductResolver::skippingPrefetchRequested_
std::atomic< bool > skippingPrefetchRequested_
Definition: ProductResolvers.h:503
kUnsetOffset
static constexpr unsigned int kUnsetOffset
Definition: ProductResolvers.cc:28
TrackValidation_cff.task
task
Definition: TrackValidation_cff.py:252
L1TObjectsTimingClient_cff.resolution
resolution
Definition: L1TObjectsTimingClient_cff.py:52
edm::WaitingTaskList::doneWaiting
void doneWaiting(std::exception_ptr iPtr)
Signals that the resource is now available and tasks should be spawned.
Definition: WaitingTaskList.cc:170
dqmdumpme.k
k
Definition: dqmdumpme.py:60
edm::NoProcessProductResolver::tryPrefetchResolverAsync
void tryPrefetchResolverAsync(unsigned int iProcessingIndex, Principal const &principal, bool skipCurrentProcess, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc, ServiceToken token) const
Definition: ProductResolvers.cc:1034
edm::NoProcessProductResolver::setCache
void setCache(bool skipCurrentProcess, ProductResolverIndex index, std::exception_ptr exceptionPtr) const
Definition: ProductResolvers.cc:956
Resolution
Definition: trackSplitPlot.h:33
edm::ServiceRegistry::Operate
friend class Operate
Definition: ServiceRegistry.h:54
edm::ProductResolverIndexInvalid
Definition: ProductResolverIndex.h:16
edm::NoProcessProductResolver::madeAtEnd_
const bool madeAtEnd_
Definition: ProductResolvers.h:504
edm::ProductResolverBase::Resolution::makeAmbiguous
static Resolution makeAmbiguous()
Definition: ProductResolverBase.h:48
edm::NoProcessProductResolver::waitingTasks_
WaitingTaskList waitingTasks_
Definition: ProductResolvers.h:498
edm::ProductResolverBase::moduleLabel
std::string const & moduleLabel() const
Definition: ProductResolverBase.h:119
edm::NoProcessProductResolver::skippingWaitingTasks_
WaitingTaskList skippingWaitingTasks_
Definition: ProductResolvers.h:499
Exception
Definition: hltDiff.cc:246
edm::NoProcessProductResolver::prefetchRequested_
std::atomic< bool > prefetchRequested_
Definition: ProductResolvers.h:502
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
unpackBuffers-CaloStage2.token
token
Definition: unpackBuffers-CaloStage2.py:318