Fix broken build

This commit is contained in:
gabime 2018-08-14 16:38:35 +03:00
parent c23f36c734
commit 750b520f41
3 changed files with 9 additions and 9 deletions

View File

@ -56,7 +56,7 @@ public:
size_t overrun_counter() const
{
return overrun_counter_;
return overrun_counter_;
}
private:

View File

@ -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_;

View File

@ -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: