6 ms·
As per jacquesm's comment below[0], your example would, by default, be compiled out if NDEBUG is defined. So in production you'd never release the lock. [0] ht
by screwt 12y ago
As per jacquesm's comment below[0], your example would, by default, be compiled out if NDEBUG is defined. So in production you'd never release the lock.
[0] https://news.ycombinator.com/item?id=8206258 https://news.ycombinator.com/item?id=8206258