FWCore
MessageService
src
SingleThreadMSPresence.cc
Go to the documentation of this file.
1
// ----------------------------------------------------------------------
2
//
3
// SingleThreadMSPresence.cc
4
//
5
// Changes:
6
//
7
//
8
9
#include "
FWCore/MessageService/interface/SingleThreadMSPresence.h
"
10
#include "
FWCore/MessageService/interface/ThreadSafeLogMessageLoggerScribe.h
"
11
12
#include "
FWCore/MessageLogger/interface/MessageLoggerQ.h
"
13
#include "
FWCore/MessageLogger/interface/MessageDrop.h
"
14
15
#include <memory>
16
17
namespace
edm
{
18
namespace
service
{
19
20
SingleThreadMSPresence::SingleThreadMSPresence
() :
Presence
() {
21
//std::cout << "SingleThreadMSPresence ctor\n";
22
MessageLoggerQ::setMLscribe_ptr
(
23
std::shared_ptr<edm::service::AbstractMLscribe>(std::make_shared<ThreadSafeLogMessageLoggerScribe>()));
24
MessageDrop::instance
()->
messageLoggerScribeIsRunning
=
MLSCRIBE_RUNNING_INDICATOR
;
25
}
26
27
SingleThreadMSPresence::~SingleThreadMSPresence
() {
28
MessageLoggerQ::MLqEND
();
29
MessageLoggerQ::setMLscribe_ptr
(std::shared_ptr<edm::service::AbstractMLscribe>());
30
}
31
32
}
// end of namespace service
33
}
// end of namespace edm
service
Definition:
service.py:1
SingleThreadMSPresence.h
edm::MLSCRIBE_RUNNING_INDICATOR
static const unsigned char MLSCRIBE_RUNNING_INDICATOR
Definition:
MessageDrop.h:120
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::MessageLoggerQ::setMLscribe_ptr
static void setMLscribe_ptr(std::shared_ptr< edm::service::AbstractMLscribe > m)
Definition:
MessageLoggerQ.cc:124
MessageLoggerQ.h
edm::MessageDrop::messageLoggerScribeIsRunning
static unsigned char messageLoggerScribeIsRunning
Definition:
MessageDrop.h:109
edm::service::SingleThreadMSPresence::~SingleThreadMSPresence
~SingleThreadMSPresence() override
Definition:
SingleThreadMSPresence.cc:27
MessageDrop.h
edm::service::SingleThreadMSPresence::SingleThreadMSPresence
SingleThreadMSPresence()
Definition:
SingleThreadMSPresence.cc:20
edm::MessageDrop::instance
static MessageDrop * instance()
Definition:
MessageDrop.cc:60
ThreadSafeLogMessageLoggerScribe.h
edm::Presence
Definition:
Presence.h:21
edm::MessageLoggerQ::MLqEND
static void MLqEND()
Definition:
MessageLoggerQ.cc:152
Generated for CMSSW Reference Manual by
1.8.16