Commit 4eb80dd8 authored by Luiz Siqueira's avatar Luiz Siqueira

acquire lock before reading overrun_counter

parent c543985c
...@@ -32,6 +32,7 @@ public: ...@@ -32,6 +32,7 @@ public:
size_t overrun_counter() const size_t overrun_counter() const
{ {
std::unique_lock<std::mutex> lock(queue_mutex_);
return q_.overrun_counter(); return q_.overrun_counter();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment