LCOV - code coverage report
Current view: top level - app/include/utils - synchronizer.hpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 0 2 0.0 %
Date: 2023-08-17 16:45:52 Functions: 0 0 -

          Line data    Source code
       1             : #pragma once
       2             : 
       3             : #include <mutex>
       4             : 
       5             : namespace utils {
       6             : template<class T>
       7             : class synchronizer: public std::mutex {
       8             :     T t;
       9             : 
      10             :    public:
      11             :     T &operator*() {
      12             :         return t;
      13             :     }
      14             : 
      15           0 :     T *operator->() {
      16           0 :         return &t;
      17             :     }
      18             : };
      19             : }  // namespace utils

Generated by: LCOV version 1.14