mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-12 17:00:25 +08:00
Update backtracer.h
This commit is contained in:
parent
3ea7fb18d6
commit
a1a6b7e64f
@ -23,14 +23,12 @@ class backtracer
|
||||
public:
|
||||
explicit backtracer(size_t n_messages) : n_messages_{n_messages}, messages_{n_messages}
|
||||
{}
|
||||
|
||||
|
||||
|
||||
size_t n_messages() const
|
||||
{
|
||||
return n_messages_;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void add(const log_msg &msg)
|
||||
{
|
||||
std::lock_guard<std::mutex> lock{mutex_};
|
||||
|
Loading…
Reference in New Issue
Block a user