MCPcopy Create free account
hub / github.com/MusicPlayerDaemon/MPD / NeedChunks

Function NeedChunks

src/decoder/Bridge.cxx:86–93  ·  view source on GitHub ↗

* All chunks are full of decoded data; wait for the player to free * one. */

Source from the content-addressed store, hash-verified

84 * one.
85 */
86static DecoderCommand
87NeedChunks(DecoderControl &dc, std::unique_lock<Mutex> &lock) noexcept
88{
89 if (dc.command == DecoderCommand::NONE)
90 dc.Wait(lock);
91
92 return dc.command;
93}
94
95static DecoderCommand
96LockNeedChunks(DecoderControl &dc) noexcept

Callers 1

LockNeedChunksFunction · 0.85

Calls 1

WaitMethod · 0.45

Tested by

no test coverage detected