mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-24 06:32:06 +08:00
acquire lock before reading overrun_counter
This commit is contained in:
parent
c543985cf4
commit
4eb80dd8d2
@ -32,6 +32,7 @@ public:
|
||||
|
||||
size_t overrun_counter() const
|
||||
{
|
||||
std::unique_lock<std::mutex> lock(queue_mutex_);
|
||||
return q_.overrun_counter();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user