LCOV - code coverage report
Current view: top level - ers/plugins - GlobalLockStream.cpp (source / functions) Coverage Total Hit
Test: code.result Lines: 20.0 % 5 1
Test Date: 2025-12-21 13:07:08 Functions: 33.3 % 3 1

            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 : }
        

Generated by: LCOV version 2.0-1