Line data Source code
1 : /*
2 : * LockStream.cxx
3 : * ers
4 : *
5 : * Created by Serguei Kolos on 12.04.06.
6 : * Copyright 2004 CERN. All rights reserved.
7 : *
8 : */
9 :
10 : #include <ers/internal/GlobalLockStream.hpp>
11 :
12 41 : ERS_REGISTER_OUTPUT_STREAM( ers::GlobalLockStream, "glock", ERS_EMPTY )
13 :
14 : std::mutex ers::GlobalLockStream::mutex_;
15 :
16 0 : void ers::GlobalLockStream::write( const Issue & issue )
17 : {
18 0 : std::scoped_lock slock( mutex_ );
19 0 : chained().write( issue );
20 0 : }
|