DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
ers
include
ers
internal
LockStream.hpp
Go to the documentation of this file.
1
/*
2
* DUNE DAQ modification notice:
3
* This file has been modified from the original ATLAS ers source for the DUNE DAQ project.
4
* Fork baseline commit: 8267df82a4f6fe6bf02c4014923eba19eddc4614 (2020-04-14).
5
* Renamed since fork: yes (from ers/internal/LockStream.h to include/ers/internal/LockStream.hpp).
6
*
7
* Original copyright:
8
* Copyright (C) 2001-2020 CERN for the benefit of the ATLAS collaboration.
9
* Licensed under the Apache License, Version 2.0.
10
*/
11
12
/*
13
* LockStream.h
14
* ers
15
*
16
* Created by Serguei Kolos on 12.04.06.
17
* Copyright 2004 CERN. All rights reserved.
18
*
19
*/
20
25
26
#ifndef ERS_LOCK_STREAM_H
27
#define ERS_LOCK_STREAM_H
28
29
#include <
ers/OutputStream.hpp
>
30
#include <mutex>
31
32
namespace
ers
33
{
34
46
47
struct
LockStream
:
public
OutputStream
48
{
49
void
write
(
const
Issue
& issue )
override
;
50
51
private
:
52
std::mutex
m_mutex
;
53
};
54
}
55
56
#endif
OutputStream.hpp
ers::Issue
Base class for any user define issue.
Definition
Issue.hpp:80
ers::OutputStream::OutputStream
OutputStream()
Definition
OutputStream.cpp:25
ers
Definition
Logger.hxx:202
ers::LockStream
Lock implementation for an ERS stream.
Definition
LockStream.hpp:48
ers::LockStream::write
void write(const Issue &issue) override
ers::LockStream::m_mutex
std::mutex m_mutex
Definition
LockStream.hpp:52
Generated on
for DUNE-DAQ by
1.17.0