DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
LockStream.hpp
Go to the documentation of this file.
1/*
2 * LockStream.h
3 * ers
4 *
5 * Created by Serguei Kolos on 12.04.06.
6 * Copyright 2004 CERN. All rights reserved.
7 *
8 */
9
15#ifndef ERS_LOCK_STREAM_H
16#define ERS_LOCK_STREAM_H
17
18#include <ers/OutputStream.hpp>
19#include <mutex>
20
21namespace ers
22{
23
36 struct LockStream : public OutputStream
37 {
38 void write( const Issue & issue ) override;
39
40 private:
41 std::mutex m_mutex;
42 };
43}
44
45#endif
Base class for any user define issue.
Definition Issue.hpp:69
ERS abstract output stream interface.
Lock implementation for an ERS stream.
void write(const Issue &issue) override
std::mutex m_mutex