4 ms·
This only runs in the debug version of the code. I hope your mutexes run in production, too.
by ntoshev 10y ago
This only runs in the debug version of the code. I hope your mutexes run in production, too.
- lmm 10y agoSo you rely on hoping your tests exercise all possible paths, because if not you get silent race conditions in prod?
- ntoshev 10y agoIf 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.