5 ms·
And how is this not a mutex?
by plq 10y ago
And how is this not a mutex?
- deleted 10y ago[deleted]
- ntoshev 10y agoThis 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.