Skip to content

Commit

Permalink
Revert changes to null_mutex
Browse files Browse the repository at this point in the history
  • Loading branch information
gabime committed Jan 18, 2025
1 parent 0e49ce4 commit 41d3c8d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions include/spdlog/details/null_mutex.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 41d3c8d

Please sign in to comment.