mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 09:59:33 +08:00
added lock on flush in base_sink
This commit is contained in:
@@ -38,6 +38,7 @@ public:
|
|||||||
}
|
}
|
||||||
void flush() SPDLOG_FINAL override
|
void flush() SPDLOG_FINAL override
|
||||||
{
|
{
|
||||||
|
std::lock_guard<Mutex> lock(_mutex);
|
||||||
_flush();
|
_flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user