Searched refs:wait_for_either_of (Results 1 – 3 of 3) sorted by relevance
/system/memory/libmemunreachable/tests/ |
D | AtomicState_test.cpp | 83 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/ |
D | AtomicState.h | 69 bool wait_for_either_of(T state1, T state2, std::chrono::nanoseconds timeout) { in wait_for_either_of() function
|
D | MemUnreachable.cpp | 428 if (!state.wait_for_either_of(COLLECTING, ABORT, 30s)) { in GetUnreachableMemory()
|