mirror of
https://github.com/gabime/spdlog.git
synced 2025-02-04 03:29:26 +08:00
Revert changes to null_mutex
This commit is contained in:
parent
0e49ce47a5
commit
41d3c8d047
@ -5,18 +5,17 @@
|
|||||||
|
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include "../common.h"
|
|
||||||
// null, no cost dummy "mutex" and dummy "atomic" log level
|
|
||||||
|
|
||||||
|
// null, no cost dummy "mutex" and dummy "atomic" log level
|
||||||
namespace spdlog {
|
namespace spdlog {
|
||||||
namespace details {
|
namespace details {
|
||||||
struct SPDLOG_API null_mutex {
|
struct null_mutex {
|
||||||
void lock() const {}
|
void lock() const {}
|
||||||
void unlock() const {}
|
void unlock() const {}
|
||||||
};
|
};
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
struct SPDLOG_API null_atomic {
|
struct null_atomic {
|
||||||
T value;
|
T value;
|
||||||
|
|
||||||
null_atomic() = default;
|
null_atomic() = default;
|
||||||
|
Loading…
Reference in New Issue
Block a user