mirror of https://github.com/gabime/spdlog.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
591 B
C++
30 lines
591 B
C++
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
|
|
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
|
|
|
|
#pragma once
|
|
|
|
#include "spdlog/common.h"
|
|
#include "spdlog/details/null_mutex.h"
|
|
#include <mutex>
|
|
|
|
namespace spdlog {
|
|
namespace details {
|
|
|
|
struct SPDLOG_API console_mutex
|
|
{
|
|
using mutex_t = std::mutex;
|
|
static mutex_t &mutex();
|
|
};
|
|
|
|
struct SPDLOG_API console_nullmutex
|
|
{
|
|
using mutex_t = null_mutex;
|
|
static mutex_t &mutex();
|
|
};
|
|
} // namespace details
|
|
} // namespace spdlog
|
|
|
|
#ifdef SPDLOG_HEADER_ONLY
|
|
#include "console_globals-inl.h"
|
|
#endif
|