mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 01:51:38 +08:00
small improvment in async shutdown
This commit is contained in:
parent
58688d7d1c
commit
ca42657d3c
@ -142,7 +142,7 @@ inline void spdlog::sinks::async_sink::shutdown(const std::chrono::milliseconds&
|
||||
auto until = log_clock::now() + timeout;
|
||||
while (_q.size() > 0 && log_clock::now() < until)
|
||||
{
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(2));
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(5));
|
||||
}
|
||||
}
|
||||
_shutdown();
|
||||
|
Loading…
Reference in New Issue
Block a user