Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 10:32:26

0001 // Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
0002 // Distributed under the MIT License (http://opensource.org/licenses/MIT)
0003 
0004 #pragma once
0005 
0006 #include <mutex>
0007 #include <spdlog/details/null_mutex.h>
0008 
0009 namespace spdlog {
0010 namespace details {
0011 
0012 struct console_mutex {
0013     using mutex_t = std::mutex;
0014     static mutex_t &mutex() {
0015         static mutex_t s_mutex;
0016         return s_mutex;
0017     }
0018 };
0019 
0020 struct console_nullmutex {
0021     using mutex_t = null_mutex;
0022     static mutex_t &mutex() {
0023         static mutex_t s_mutex;
0024         return s_mutex;
0025     }
0026 };
0027 }  // namespace details
0028 }  // namespace spdlog