mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-24 09:31:34 +08:00
Fixed thread unsafe flush method.
This commit is contained in:
parent
e12c50a8a5
commit
2175b00814
@ -60,6 +60,7 @@ protected:
|
||||
public:
|
||||
void flush() override
|
||||
{
|
||||
std::lock_guard<Mutex> lock(base_sink<Mutex>::_mutex);
|
||||
for (auto iter = _sinks.begin(); iter != _sinks.end(); iter++)
|
||||
(*iter)->flush();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user