MCPcopy Create free account
hub / github.com/comaps/comaps / WaitUntil

Method WaitUntil

libs/routing/routing_tests/routing_session_test.cpp:127–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125 }
126
127 bool WaitUntil(steady_clock::time_point const & time)
128 {
129 unique_lock<mutex> lock(m_waitingMutex);
130 m_cv.wait_until(lock, time, [this, &time] { return m_flag || steady_clock::now() > time; });
131 return m_flag;
132 }
133
134private:
135 mutex m_waitingMutex;

Callers 4

SessionStateTestMethod · 0.80
~SessionStateTestMethod · 0.80
TestMovingByUpdatingLatFunction · 0.80
UNIT_CLASS_TESTFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected