Revert changes to null_mutex

This commit is contained in:
gabime 2025-01-18 13:05:35 +02:00
parent 0e49ce47a5
commit 41d3c8d047

View File

@ -5,18 +5,17 @@
#include <atomic>
#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 details {
struct SPDLOG_API null_mutex {
struct null_mutex {
void lock() const {}
void unlock() const {}
};
template <typename T>
struct SPDLOG_API null_atomic {
struct null_atomic {
T value;
null_atomic() = default;