This commit is contained in:
gabime
2014-01-29 04:00:05 +02:00
parent 470c23ad92
commit 31315db7b2
6 changed files with 127 additions and 34 deletions

View File

@@ -60,8 +60,9 @@ inline void c11log::sinks::async_sink::sink_it_(const std::string& msg)
inline void c11log::sinks::async_sink::thread_loop_()
{
constexpr auto pop_timeout = std::chrono::seconds(1);
std::string msg;
auto pop_timeout = std::chrono::seconds(1);
while (active_)
{
if (q_.pop(msg, pop_timeout))