Skip to content

Commit

Permalink
Prefetch mayConsumes to avoid deadlocks
Browse files Browse the repository at this point in the history
We must prefetch even data products which are mayConsumes in order
to avoid deadlocks for the case where another thread has locked a
resource needed by the unscheduled module. This will go away once
resources are released when a module calls 'Event::getBy*'.
  • Loading branch information
Dr15Jones committed Aug 14, 2015
1 parent 82d6daa commit 67d5117
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions FWCore/Framework/src/EDConsumerBase.cc
Expand Up @@ -187,6 +187,9 @@ EDConsumerBase::updateLookup(BranchType iBranchType,

if(iBranchType == InEvent) {
itemsToGet(iBranchType, itemsToGetFromEvent_);
//Temporary: until we release resources on Event::getBy* calls
// we need to prefetch mayConsumes as well
itemsMayGet(iBranchType, itemsToGetFromEvent_);
}
}

Expand Down

0 comments on commit 67d5117

Please sign in to comment.