Even sleep(1) lead to episodical flakes on some machines. Use an invisible by tsan barrier to enforce required execution order instead. This makes the tests deterministic and faster. llvm-svn: 226659
https://code.google.com/p/data-race-test/source/browse/trunk/unittest/racecheck_unittest.cc llvm-svn: 209900