On Mon, Jan 19, 2015 at 12:43:39PM +0400, Dmitry Vyukov wrote: > Hi Bernd, > > Yes, that email is marked in my inbox. Sorry for not answering earlier. > > I can't really make my mind on this. I would mildly prefer sleep's (if > they work reliably!).
Sleeps by definition should not be reliable, not to mention that they waste testing time. > Kostya, please chime in. This is equivalent to StealthNotification > that we used in old data-race-test test suite: > https://code.google.com/p/data-race-test/source/browse/trunk/unittest/test_utils.h#134 > Kostya, you had experience with both approaches. What are you thoughts on > this? > StealthNotification definitely makes tests faster and more reliable. I > can't really come up with any objective downsides. Jakub