Agora
1.2.0
Agora project
console_globals.h
Go to the documentation of this file.
1
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
2
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
3
4
#pragma once
5
6
#include <
spdlog/details/null_mutex.h
>
7
#include <mutex>
8
9
namespace
spdlog
{
10
namespace
details {
11
12
struct
console_mutex
13
{
14
using
mutex_t
= std::mutex;
15
static
mutex_t
&
mutex
()
16
{
17
static
mutex_t
s_mutex;
18
return
s_mutex;
19
}
20
};
21
22
struct
console_nullmutex
23
{
24
using
mutex_t
=
null_mutex
;
25
static
mutex_t
&
mutex
()
26
{
27
static
mutex_t
s_mutex;
28
return
s_mutex;
29
}
30
};
31
}
// namespace details
32
}
// namespace spdlog
spdlog::details::console_mutex::mutex_t
std::mutex mutex_t
Definition:
console_globals.h:14
spdlog::details::console_mutex
Definition:
console_globals.h:12
null_mutex.h
spdlog
Definition:
async.h:25
spdlog::details::console_nullmutex::mutex
static mutex_t & mutex()
Definition:
console_globals.h:25
spdlog::details::console_nullmutex
Definition:
console_globals.h:22
spdlog::details::console_mutex::mutex
static mutex_t & mutex()
Definition:
console_globals.h:15
spdlog::details::null_mutex
Definition:
null_mutex.h:12
third_party
spdlog
include
spdlog
details
console_globals.h
Generated by
1.8.17