some other version

This commit is contained in:
Johannes Wendel
2019-12-05 21:46:14 +01:00
parent b49bfc65f0
commit 1591dd02ef
5 changed files with 11 additions and 9 deletions

View File

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