1
0
mirror of https://github.com/gabime/spdlog.git synced 2025-04-29 03:53:54 +00:00
This commit is contained in:
gabime 2019-09-03 11:53:28 +03:00
parent e754cbf763
commit e6b0aaf94a

View File

@ -42,7 +42,7 @@ public:
messages_.push_back(log_msg_buffer{msg}); messages_.push_back(log_msg_buffer{msg});
} }
// pop all items in the q and apply the give fun on each of them. // pop all items in the q and apply the given fun on each of them.
void foreach_pop(std::function<void(const details::log_msg)> fun) void foreach_pop(std::function<void(const details::log_msg)> fun)
{ {
std::lock_guard<std::mutex> lock{mutex_}; std::lock_guard<std::mutex> lock{mutex_};