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
|
size_t overrun_counter() const
|
||||||
{
|
{
|
||||||
|
std::unique_lock<std::mutex> lock(queue_mutex_);
|
||||||
return q_.overrun_counter();
|
return q_.overrun_counter();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user