Fixed race conditions in thread tests; exposed by UBSan

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@178029 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow
2013-03-26 15:28:33 +00:00
parent 3fbd1dfb24
commit c3a9b81e67
13 changed files with 19 additions and 15 deletions

View File

@@ -32,14 +32,14 @@ public:
void operator()()
{
assert(alive_ == 1);
assert(n_alive == 1);
assert(n_alive >= 1);
op_run = true;
}
void operator()(int i, double j)
{
assert(alive_ == 1);
assert(n_alive == 1);
assert(n_alive >= 1);
assert(i == 5);
assert(j == 5.5);
op_run = true;