Fix cuckoocache_tests TSAN failure introduced in #14935. Fixes #14967.

This commit is contained in:
practicalswift
2018-12-15 09:59:24 +01:00
parent 9133227298
commit d98a29ec40
2 changed files with 6 additions and 3 deletions

View File

@@ -355,7 +355,8 @@ BOOST_AUTO_TEST_CASE(test_CheckQueue_FrozenCleanup)
// would get called twice).
vChecks[0].should_freeze = true;
control.Add(vChecks);
BOOST_CHECK(control.Wait()); // Hangs here
bool waitResult = control.Wait(); // Hangs here
assert(waitResult);
});
{
std::unique_lock<std::mutex> l(FrozenCleanupCheck::m);