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

As an example, in our C++ codebase at work we always place mutex locks inside their own scope blocks along with the critical sections of code they’re synchronizing. Helps readability and the scope determines when the mutex is released.


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

Search: