Main Page
Namespaces
Classes
Package Documentation
FWCore
Framework
src
LuminosityBlockProcessingStatus.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: FWCore/Framework
4
// Class : LuminosityBlockProcessingStatus
5
//
6
// Implementation:
7
// [Notes on implementation]
8
//
9
// Original Author: Chris Jones
10
// Created: Thu, 11 Jan 2018 16:41:46 GMT
11
//
12
13
// system include files
14
15
// user include files
16
#include "
LuminosityBlockProcessingStatus.h
"
17
#include "
FWCore/Framework/interface/LuminosityBlockPrincipal.h
"
18
19
namespace
edm
{
20
void
LuminosityBlockProcessingStatus::setEndTime
() {
21
if
(2 !=
endTimeSetStatus_
) {
22
//not already set
23
char
expected = 0;
24
if
(
endTimeSetStatus_
.compare_exchange_strong(expected, 1)) {
25
lumiPrincipal_
->setEndTime(
endTime_
);
26
endTimeSetStatus_
.store(2);
27
}
else
{
28
//wait until time is set
29
while
(2 !=
endTimeSetStatus_
.load()) {
30
}
31
}
32
}
33
}
34
}
// namespace edm
LuminosityBlockPrincipal.h
edm::LuminosityBlockProcessingStatus::endTime_
edm::Timestamp endTime_
Definition:
LuminosityBlockProcessingStatus.h:100
LuminosityBlockProcessingStatus.h
edm::LuminosityBlockProcessingStatus::lumiPrincipal_
std::shared_ptr< LuminosityBlockPrincipal > lumiPrincipal_
Definition:
LuminosityBlockProcessingStatus.h:94
edm
HLT enums.
Definition:
AlignableModifier.h:17
edm::LuminosityBlockProcessingStatus::setEndTime
void setEndTime()
Definition:
LuminosityBlockProcessingStatus.cc:20
edm::LuminosityBlockProcessingStatus::endTimeSetStatus_
std::atomic< char > endTimeSetStatus_
Definition:
LuminosityBlockProcessingStatus.h:101
Generated for CMSSW Reference Manual by
1.8.11