Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
FWCore
Framework
src
SharedResourcesAcquirer.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: Subsystem/Package
4
// Class : SharedResourcesAcquirer
5
//
6
// Implementation:
7
// [Notes on implementation]
8
//
9
// Original Author: Chris Jones
10
// Created: Sun, 06 Oct 2013 19:43:28 GMT
11
//
12
13
// system include files
14
15
// user include files
16
#include "
FWCore/Framework/interface/SharedResourcesAcquirer.h
"
17
18
19
namespace
edm {
20
void
SharedResourcesAcquirer::lock
() {
21
for
(
auto
m
:
m_resources
) {
22
m
->lock();
23
}
24
}
25
26
void
SharedResourcesAcquirer::unlock
() {
27
for
(
auto
it =
m_resources
.rbegin(), itEnd =
m_resources
.rend();
28
it != itEnd; ++it) {
29
(*it)->unlock();
30
}
31
}
32
}
SharedResourcesAcquirer.h
edm::SharedResourcesAcquirer::m_resources
std::vector< std::recursive_mutex * > m_resources
Definition:
SharedResourcesAcquirer.h:65
visualization-live-secondInstance_cfg.m
tuple m
Definition:
visualization-live-secondInstance_cfg.py:45
edm::SharedResourcesAcquirer::lock
void lock()
Definition:
SharedResourcesAcquirer.cc:20
edm::SharedResourcesAcquirer::unlock
void unlock()
Definition:
SharedResourcesAcquirer.cc:26
Generated for CMSSW Reference Manual by
1.8.5