acquire lock before reading overrun_counter

This commit is contained in:
Luiz Siqueira 2018-08-14 10:11:03 -03:00
parent c543985cf4
commit 4eb80dd8d2

View File

@ -32,6 +32,7 @@ public:
size_t overrun_counter() const
{
std::unique_lock<std::mutex> lock(queue_mutex_);
return q_.overrun_counter();
}