mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-16 00:45:48 +08:00
Fix backtracer
This commit is contained in:
parent
dc893701f9
commit
5e75b104d6
@ -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())
|
||||||
|
Loading…
Reference in New Issue
Block a user