Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
FWCore
Framework
src
DelayedReader.cc
Go to the documentation of this file.
1
#include "
FWCore/Framework/interface/DelayedReader.h
"
2
#include "
FWCore/Framework/interface/SharedResourcesAcquirer.h
"
3
4
#include <mutex>
5
#include <cassert>
6
/*----------------------------------------------------------------------
7
8
9
----------------------------------------------------------------------*/
10
11
12
namespace
edm {
13
DelayedReader::~DelayedReader
() {}
14
15
WrapperOwningHolder
16
DelayedReader::getProduct
(
BranchKey
const
&
k
,
WrapperInterfaceBase
const
* interface,
EDProductGetter
const
* ep) {
17
auto
sr =
sharedResources_
();
18
std::unique_lock<SharedResourcesAcquirer> guard;
19
if
(sr) {
20
guard =std::unique_lock<SharedResourcesAcquirer>(*sr);
21
}
22
return
getProduct_
(k, interface, ep);
23
}
24
25
SharedResourcesAcquirer
*
26
DelayedReader::sharedResources_
()
const
{
27
return
nullptr
;
28
}
29
}
edm::EDProductGetter
Definition:
EDProductGetter.h:29
edm::DelayedReader::getProduct
WrapperOwningHolder getProduct(BranchKey const &k, WrapperInterfaceBase const *interface, EDProductGetter const *ep)
Definition:
DelayedReader.cc:16
SharedResourcesAcquirer.h
edm::DelayedReader::~DelayedReader
virtual ~DelayedReader()
Definition:
DelayedReader.cc:13
DelayedReader.h
edm::DelayedReader::getProduct_
virtual WrapperOwningHolder getProduct_(BranchKey const &k, WrapperInterfaceBase const *interface, EDProductGetter const *ep) const =0
gen::k
int k[5][pyjets_maxn]
Definition:
Cascade2Hadronizer.cc:79
edm::DelayedReader::sharedResources_
virtual SharedResourcesAcquirer * sharedResources_() const
Definition:
DelayedReader.cc:26
edm::WrapperInterfaceBase
Definition:
WrapperInterfaceBase.h:20
edm::BranchKey
Definition:
BranchKey.h:17
edm::SharedResourcesAcquirer
Definition:
SharedResourcesAcquirer.h:31
edm::WrapperOwningHolder
Definition:
WrapperOwningHolder.h:13
Generated for CMSSW Reference Manual by
1.8.5