Blame view

3rdparty/spdlog-1.9.2/release/include/spdlog/details/console_globals.h 609 Bytes
3d2ab595   Hu Chunming   支持gb28181
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  // Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
  // Distributed under the MIT License (http://opensource.org/licenses/MIT)
  
  #pragma once
  
  #include <spdlog/details/null_mutex.h>
  #include <mutex>
  
  namespace spdlog {
  namespace details {
  
  struct console_mutex
  {
      using mutex_t = std::mutex;
      static mutex_t &mutex()
      {
          static mutex_t s_mutex;
          return s_mutex;
      }
  };
  
  struct console_nullmutex
  {
      using mutex_t = null_mutex;
      static mutex_t &mutex()
      {
          static mutex_t s_mutex;
          return s_mutex;
      }
  };
  } // namespace details
  } // namespace spdlog