src
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/src/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
edm::MessageDrop::messageLoggerScribeIsRunning
static unsigned char messageLoggerScribeIsRunning
Definition:
MessageDrop.h:70
SingleThreadMSPresence.h
edm::MessageDrop::instance
static MessageDrop * instance()
Definition:
MessageDrop.cc:33
edm::MLSCRIBE_RUNNING_INDICATOR
static const unsigned char MLSCRIBE_RUNNING_INDICATOR
Definition:
MessageDrop.h:83
edm::service::SingleThreadMSPresence::SingleThreadMSPresence
SingleThreadMSPresence()
Definition:
SingleThreadMSPresence.cc:20
MessageDrop.h
service
Definition:
service.py:1
MessageLoggerQ.h
edm::MessageLoggerQ::MLqEND
static void MLqEND()
Definition:
MessageLoggerQ.cc:152
edm::MessageLoggerQ::setMLscribe_ptr
static void setMLscribe_ptr(std::shared_ptr< edm::service::AbstractMLscribe > m)
Definition:
MessageLoggerQ.cc:124
edm::service::SingleThreadMSPresence::~SingleThreadMSPresence
~SingleThreadMSPresence() override
Definition:
SingleThreadMSPresence.cc:27
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::Presence
Definition:
Presence.h:21
ThreadSafeLogMessageLoggerScribe.h
Generated for CMSSW Reference Manual by
1.8.14