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:
@@ -32,7 +32,7 @@ public:
|
||||
void operator()()
|
||||
{
|
||||
assert(alive_ == 1);
|
||||
assert(n_alive == 1);
|
||||
assert(n_alive >= 1);
|
||||
op_run = true;
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user