Commit 91fae223 authored by gabime's avatar gabime

async_sink to use queue of pointers of log_msgs - faster than moving..

parent fe25056b
......@@ -115,9 +115,7 @@ inline void spdlog::sinks::async_sink::_sink_it(const details::log_msg& msg)
{
using namespace spdlog::details;
_push_sentry();
//_q.push(std::move(msg));
auto msg_p = std::unique_ptr<log_msg>(new log_msg(msg));
_q.push(std::move(msg_p));
_q.push(std::unique_ptr<log_msg>(new log_msg(msg)));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment