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

@ -30,12 +30,6 @@ public:
{ {
} }
size_t overrun_counter() const
{
std::unique_lock<std::mutex> lock(queue_mutex_);
return q_.overrun_counter();
}
#ifndef __MINGW32__ #ifndef __MINGW32__
// try to enqueue and block if no room left // try to enqueue and block if no room left
void enqueue(T &&item) void enqueue(T &&item)
@ -111,6 +105,12 @@ public:
#endif #endif
size_t overrun_counter()
{
std::unique_lock<std::mutex> lock(queue_mutex_);
return q_.overrun_counter();
}
private: private:
std::mutex queue_mutex_; std::mutex queue_mutex_;
std::condition_variable push_cv_; std::condition_variable push_cv_;

View File

@ -157,7 +157,7 @@ public:
post_async_msg_(async_msg(std::move(worker_ptr), async_msg_type::flush), overflow_policy); 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();
} }