fixed some testing bugs
This commit is contained in:
@@ -32,7 +32,9 @@ public:
|
||||
|
||||
T pop()
|
||||
{
|
||||
std::unique_lock<std::mutex> lock(this->d_mutex);
|
||||
// TODO die queue funzt net weil wir nich pushen koennen wenn wir im pop warten
|
||||
// TODO denk ma ueber future nach
|
||||
std::unique_lock<std::mutex> lock(this->d_mutex);
|
||||
this->d_condition.wait(lock, [=]{ return !this->p_queue.empty(); });
|
||||
T rc = *this->p_queue.end();
|
||||
this->p_queue.pop();
|
||||
|
||||
Reference in New Issue
Block a user