logger templates

This commit is contained in:
gabime
2014-03-29 00:27:13 +03:00
parent c09df09b9c
commit 1c4be7fb88
5 changed files with 74 additions and 35 deletions

View File

@@ -74,6 +74,7 @@ inline void c11log::sinks::async_sink::_sink_it(const details::log_msg& msg)
auto new_shared = std::shared_ptr<details::log_msg>(new_msg, [](details::log_msg* msg_to_delete)
{
delete []msg_to_delete->msg_buf.first;
delete msg_to_delete;
});
_q.push(new_shared);
}