TTI semaphore requires protection in wait_all

master
Xavier Arteaga 5 years ago committed by Xavier Arteaga
parent 76408b195e
commit 590847e794

@ -94,9 +94,11 @@ public:
*/
void wait_all()
{
std::unique_lock<std::mutex> lock(mutex);
// Wait until the FIFO is empty
while (not fifo.empty()) {
wait(fifo.front());
cvar.wait(lock);
}
}
};

Loading…
Cancel
Save