Commit 750b520f authored by gabime's avatar gabime

Fix broken build

parent c23f36c7
......@@ -56,7 +56,7 @@ public:
size_t overrun_counter() const
{
return overrun_counter_;
return overrun_counter_;
}
private:
......
......@@ -30,12 +30,6 @@ public:
{
}
size_t overrun_counter() const
{
std::unique_lock<std::mutex> lock(queue_mutex_);
return q_.overrun_counter();
}
#ifndef __MINGW32__
// try to enqueue and block if no room left
void enqueue(T &&item)
......@@ -111,6 +105,12 @@ public:
#endif
size_t overrun_counter()
{
std::unique_lock<std::mutex> lock(queue_mutex_);
return q_.overrun_counter();
}
private:
std::mutex queue_mutex_;
std::condition_variable push_cv_;
......
......@@ -157,9 +157,9 @@ public:
post_async_msg_(async_msg(std::move(worker_ptr), async_msg_type::flush), overflow_policy);
}
size_t overrun_counter() const
size_t overrun_counter()
{
return q_.overrun_counter();
return q_.overrun_counter();
}
private:
......
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