Commit 55eebf76 authored by gabime's avatar gabime

clear fix

parent bb529a22
......@@ -97,7 +97,7 @@ public:
{
{
std::unique_lock<std::mutex> ul(mutex_);
q_ = queue_t{};
q_.swap(queue_t());
}
item_popped_cond_.notify_all();
}
......
......@@ -87,8 +87,6 @@ void testq(int size, int pushers, int poppers)
for(int i = 0; i < pushers; i++)
new std::thread(std::bind(pusher, &q));
while(active)
{
using std::endl;
......
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