Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
FWCore
MessageService
interface
MainThreadMLscribe.h
Go to the documentation of this file.
1
#ifndef FWCore_MessageService_MainThreadMLscribe_h
2
#define FWCore_MessageService_MainThreadMLscribe_h
3
4
#include "
FWCore/MessageLogger/interface/AbstractMLscribe.h
"
5
#include "
FWCore/MessageLogger/interface/MessageLoggerQ.h
"
6
7
// I believe the below are not needed:
8
9
#include "boost/shared_ptr.hpp"
10
11
#include <iosfwd>
12
#include <vector>
13
#include <map>
14
15
#include <iostream>
16
17
namespace
edm {
18
namespace
service
{
19
20
// ----------------------------------------------------------------------
21
//
22
// MainThreadMLscribe.h
23
//
24
// This class is a concrete of AbstractMessageLoggerScribe
25
// Its purpose exists ONLY if there is a second thread running the workhorse
26
// scrribe. In that case, the workhorse will be consuming from a
27
// SingleConsumerQ, and this class is the one that places the item on said
28
// queue. It does work that used to be the realm of MessageLoggerQ.
29
//
30
// Changes:
31
//
32
// 0 - 8/7/09 Initial version mf and crj
33
//
34
// -----------------------------------------------------------------------
35
36
class
ThreadQueue
;
37
38
class
MainThreadMLscribe
:
public
AbstractMLscribe
39
{
40
public
:
41
// --- birth/death:
42
MainThreadMLscribe
(boost::shared_ptr<ThreadQueue> tqp);
43
virtual
~MainThreadMLscribe
();
44
45
// --- receive and act on messages:
46
virtual
47
void
runCommand
(
MessageLoggerQ::OpCode
opcode,
void
* operand);
48
49
50
private
:
51
52
boost::shared_ptr<ThreadQueue>
m_queue
;
53
};
// MainThreadMLscribe
54
55
56
}
// end of namespace service
57
}
// namespace edm
58
59
60
#endif // FWCore_MessageService_MainThreadMLscribe_h
AbstractMLscribe.h
edm::service::AbstractMLscribe
Definition:
AbstractMLscribe.h:9
edm::service::MainThreadMLscribe::~MainThreadMLscribe
virtual ~MainThreadMLscribe()
Definition:
MainThreadMLscribe.cc:21
edm::MessageLoggerQ::OpCode
OpCode
Definition:
MessageLoggerQ.h:29
ThreadQueue
edm::service::MainThreadMLscribe::MainThreadMLscribe
MainThreadMLscribe(boost::shared_ptr< ThreadQueue > tqp)
Definition:
MainThreadMLscribe.cc:16
MessageLoggerQ.h
edm::service::MainThreadMLscribe
Definition:
MainThreadMLscribe.h:38
fff_monitoring.service
tuple service
Definition:
fff_monitoring.py:268
edm::service::MainThreadMLscribe::runCommand
virtual void runCommand(MessageLoggerQ::OpCode opcode, void *operand)
Definition:
MainThreadMLscribe.cc:25
edm::service::MainThreadMLscribe::m_queue
boost::shared_ptr< ThreadQueue > m_queue
Definition:
MainThreadMLscribe.h:52
Generated for CMSSW Reference Manual by
1.8.5