mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-12 17:00:25 +08:00
async_sink to use queue of pointers of log_msgs - faster than moving..
This commit is contained in:
parent
fe25056b38
commit
91fae223cc
@ -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)));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user