some other version
This commit is contained in:
@@ -43,7 +43,7 @@ public:
|
||||
{
|
||||
std::unique_lock<std::mutex> lock(this->d_mutex);
|
||||
this->d_condition.wait(lock, [=]
|
||||
{ return !this->p_queue.empty(); });
|
||||
{ return !this->p_queue.empty(); });
|
||||
T rc = *this->p_queue.begin();
|
||||
this->p_queue.pop();
|
||||
return rc;
|
||||
|
||||
Reference in New Issue
Block a user