Home
last modified time | relevance | path

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

/device/google/trout/hal/audiocontrol/aidl/1.0/libandroid_audio_controller/
Dandroid_audio_controller.cpp228 auto nextHeartbeatTime = std::chrono::steady_clock::now(); in RequestWorker() local
231 const auto ok_to_proceed = [this, &nextHeartbeatTime]() { in RequestWorker()
234 (current_timestamp > nextHeartbeatTime && !mActiveSessions.empty()); in RequestWorker()
240 if (!mRequestWorkerCV.wait_until(lock, nextHeartbeatTime, ok_to_proceed)) { in RequestWorker()
241 nextHeartbeatTime = std::chrono::steady_clock::now() + heartBeatPeriod; in RequestWorker()
246 if (current_timestamp > nextHeartbeatTime) { in RequestWorker()
247 nextHeartbeatTime = current_timestamp + 1s; in RequestWorker()