Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: