mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-24 14:42:13 +08:00
Remove unused member from backtracer
This commit is contained in:
parent
5e75b104d6
commit
6ff52332a8
@ -17,25 +17,15 @@ namespace details {
|
|||||||
class backtracer
|
class backtracer
|
||||||
{
|
{
|
||||||
std::mutex mutex_;
|
std::mutex mutex_;
|
||||||
size_t n_messages_;
|
|
||||||
circular_q<log_msg_buffer> messages_;
|
circular_q<log_msg_buffer> messages_;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit backtracer(size_t n_messages)
|
explicit backtracer(size_t n_messages) : messages_{n_messages}
|
||||||
: n_messages_{n_messages}
|
|
||||||
, messages_{n_messages}
|
|
||||||
{}
|
{}
|
||||||
|
|
||||||
backtracer(const backtracer &other)
|
backtracer(const backtracer &other) : messages_{other.messages_}
|
||||||
: n_messages_{other.n_messages_}
|
|
||||||
, messages_{other.messages_}
|
|
||||||
{}
|
{}
|
||||||
|
|
||||||
size_t n_messages() const
|
|
||||||
{
|
|
||||||
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