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
@ -24,13 +24,11 @@ public:
|
|||||||
explicit backtracer(size_t n_messages) : n_messages_{n_messages}, messages_{n_messages}
|
explicit backtracer(size_t n_messages) : n_messages_{n_messages}, messages_{n_messages}
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
size_t n_messages() const
|
size_t n_messages() const
|
||||||
{
|
{
|
||||||
return n_messages_;
|
return n_messages_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void add(const log_msg &msg)
|
void add(const log_msg &msg)
|
||||||
{
|
{
|
||||||
std::lock_guard<std::mutex> lock{mutex_};
|
std::lock_guard<std::mutex> lock{mutex_};
|
||||||
|
Loading…
Reference in New Issue
Block a user