Hacker News new | ask | show | jobs
by dgottlieb 5161 days ago
In fairness to the rest of the article, in Listing 9 the author does protect the call to empty() with (the same) lock and also moves the condition inside of a while loop.