Home
last modified time | relevance | path

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

/device/generic/goldfish/audio/
Dring_buffer.cpp54 bool RingBuffer::waitForProduceAvailable(Timepoint blockUntil) const { in waitForProduceAvailable()
59 } else if (mProduceAvailable.wait_until(lock, blockUntil) == std::cv_status::timeout) { in waitForProduceAvailable()
115 bool RingBuffer::waitForConsumeAvailable(Timepoint blockUntil) const { in waitForConsumeAvailable()
120 } else if (mConsumeAvailable.wait_until(lock, blockUntil) == std::cv_status::timeout) { in waitForConsumeAvailable()
Ddevice_port_sink.cpp134 const auto blockUntil = in write() local
139 if (mRingBuffer.waitForProduceAvailable(blockUntil in write()
146 std::this_thread::sleep_until(blockUntil); in write()
318 const auto blockUntil = in write() local
321 std::this_thread::sleep_until(blockUntil); in write()
Dring_buffer.h53 bool waitForProduceAvailable(Timepoint blockUntil) const;
68 bool waitForConsumeAvailable(Timepoint blockUntil) const;
Ddevice_port_source.cpp114 const auto blockUntil = in read() local
119 if (mRingBuffer.waitForConsumeAvailable(blockUntil in read()
125 std::this_thread::sleep_until(blockUntil); in read()