Skip to content

Commit

Permalink
Merge pull request #1918 from matt77hias/v1.x
Browse files Browse the repository at this point in the history
Made mutex member variable mutable
  • Loading branch information
gabime authored Apr 22, 2021
2 parents c5abaed + 9d3dde0 commit 8e3b133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/spdlog/sinks/base_sink.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class base_sink : public sink
protected:
// sink formatter
std::unique_ptr<spdlog::formatter> formatter_;
Mutex mutex_;
mutable Mutex mutex_;

virtual void sink_it_(const details::log_msg &msg) = 0;
virtual void flush_() = 0;
Expand Down

0 comments on commit 8e3b133

Please sign in to comment.