We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e998d4 commit 7cb9aa4Copy full SHA for 7cb9aa4
llvm/unittests/CAS/LazyAtomicPointerTest.cpp
@@ -60,7 +60,7 @@ TEST(LazyAtomicPointer, BusyState) {
60
61
// Wait for busy state.
62
std::unique_lock<std::mutex> LBusy(BusyLock);
63
- Busy.wait(LBusy);
+ Busy.wait(LBusy, [&]() { return IsBusy; });
64
int *ExistingValue = nullptr;
65
// Busy state will not exchange the value.
66
EXPECT_FALSE(Ptr.compare_exchange_weak(ExistingValue, nullptr));
0 commit comments