Commit 5e75b104 authored by gabime's avatar gabime

Fix backtracer

parent dc893701
...@@ -43,7 +43,7 @@ public: ...@@ -43,7 +43,7 @@ public:
} }
// pop all items in the q and apply the given 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_};
while (!messages_.empty()) while (!messages_.empty())
......
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