The Gaudi Framework  v33r0 (d5ea422b)
TBBMessageSvc.cpp
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 #include "TBBMessageSvc.h"
12 
13 // ----------------------------------------------------------------------------
14 // Implementation file for class: TBBMessageSvc
15 //
16 // 22/06/2012: Marco Clemencic
17 // ----------------------------------------------------------------------------
19 
20 void TBBMessageSvc::reportMessage( const Message& msg, int outputLevel ) {
21  m_messageQueue.add( new MessageWithLevel( *this, msg, outputLevel ) );
22 }
23 
25 
26 void TBBMessageSvc::reportMessage( const StatusCode& code, const std::string& source ) {
27  m_messageQueue.add( new StatusCodeMessage( *this, code, source ) );
28 }
29 
30 // ============================================================================
Gaudi::SerialTaskQueue m_messageQueue
Definition: TBBMessageSvc.h:96
void reportMessage(const Message &msg) override
Implementation of IMessageSvc::reportMessage()
STL class.
#define DECLARE_COMPONENT(type)
Specialized class to report a message with explicit output level.
Definition: TBBMessageSvc.h:60
Specialized class to report a StatusCode message.
Definition: TBBMessageSvc.h:85
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:61
MsgStream & msg() const
shortcut for the method msgStream(MSG::INFO)
The Message class.
Definition: Message.h:27
void add(WorkItem *item)
Enqueue a WorkItem for execution.
Specialized class to report a message with implicit output level.
Definition: TBBMessageSvc.h:72