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

This only runs in the debug version of the code. I hope your mutexes run in production, too.


So you rely on hoping your tests exercise all possible paths, because if not you get silent race conditions in prod?


If you want you can run it in production, too (this would give you a warning, won't prevent race conditions, but there is almost no performance penalty). The point was this is very different from a mutex.




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

Search: