Home
last modified time | relevance | path

Searched refs:wait_for_either_of (Results 1 – 3 of 3) sorted by relevance

/system/memory/libmemunreachable/tests/
DAtomicState_test.cpp83 ASSERT_FALSE(state_.wait_for_either_of(B, C, 10ms)); in TEST_F()
86 ASSERT_TRUE(state_.wait_for_either_of(A, B, 1s)); in TEST_F()
95 ASSERT_TRUE(state_.wait_for_either_of(B, C, 1s)); in TEST_F()
108 ASSERT_TRUE(state_.wait_for_either_of(A, C, 1s)); in TEST_F()
121 ASSERT_FALSE(state_.wait_for_either_of(A, B, 100ms)); in TEST_F()
/system/memory/libmemunreachable/
DAtomicState.h69 bool wait_for_either_of(T state1, T state2, std::chrono::nanoseconds timeout) { in wait_for_either_of() function
DMemUnreachable.cpp428 if (!state.wait_for_either_of(COLLECTING, ABORT, 30s)) { in GetUnreachableMemory()