DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
Lock implementation for an ERS stream. More...
#include <LockStream.hpp>
Public Member Functions | |
void | write (const Issue &issue) override |
![]() | |
virtual | ~OutputStream () |
Sends the issue into this stream. | |
Private Attributes | |
std::mutex | m_mutex |
Additional Inherited Members | |
![]() | |
OutputStream () | |
OutputStream & | chained () |
virtual bool | isNull () const |
Lock implementation for an ERS stream.
This class can be used to lock a particular ERS output streams to prevent output to this stream produced by concurrent threads from been mixed up. In order to employ this implementation in a stream configuration the name to be used is "lock". E.g. the following configuration will assure that the output sent to the LOG stream by concurrent threads is never mixed up:
export DUNEDAQ_ERS_LOG="lock,stdout"
Definition at line 36 of file LockStream.hpp.
|
overridevirtual |
Implements ers::OutputStream.
|
private |
Definition at line 41 of file LockStream.hpp.