mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-30 10:29:02 +08:00
flush helper count writes instead of time
This commit is contained in:
@@ -19,7 +19,8 @@ public:
|
||||
virtual ~console_sink() = default;
|
||||
|
||||
protected:
|
||||
virtual void _sink_it(const std::string& msg) override {
|
||||
virtual void _sink_it(const std::string& msg) override
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(_mutex);
|
||||
_ostream << msg;
|
||||
}
|
||||
|
Reference in New Issue
Block a user