DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
GlobalLockStream.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/GlobalLockStream.h to include/ers/internal/GlobalLockStream.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_GLOBAL_LOCK_STREAM_H
27#define ERS_GLOBAL_LOCK_STREAM_H
28
29#include <mutex>
30
31#include <ers/OutputStream.hpp>
32
33namespace ers
34{
35
42
44 {
45 void write( const Issue & issue ) override;
46
47 private:
48 static std::mutex mutex_;
49 };
50}
51
52#endif
Base class for any user define issue.
Definition Issue.hpp:80
Lock for ERS streams.
void write(const Issue &issue) override
static std::mutex mutex_