|
MPD
0.20.18
|
A utility class which helps with consuming data from a MusicPipe. More...
#include <SharedPipeConsumer.hxx>
Public Member Functions | |
| void | Init (const MusicPipe &_pipe) |
| const MusicPipe & | GetPipe () |
| bool | IsInitial () |
| void | Cancel () |
| const MusicChunk * | Get () noexcept |
| void | Consume (gcc_unused const MusicChunk &_chunk) |
| gcc_pure bool | IsConsumed (const MusicChunk &_chunk) const noexcept |
| void | ClearTail (gcc_unused const MusicChunk &_chunk) noexcept |
A utility class which helps with consuming data from a MusicPipe.
This class is intentionally not thread-safe. Since it is designed to be called from two distinct threads (PlayerThread=feeder and OutputThread=consumer), all methods must be called with a mutex locked to serialize access. Usually, this is AudioOutput::mutex.
Definition at line 39 of file SharedPipeConsumer.hxx.
|
inline |
Definition at line 74 of file SharedPipeConsumer.hxx.
|
inlinenoexcept |
Definition at line 90 of file SharedPipeConsumer.hxx.
|
inline |
Definition at line 80 of file SharedPipeConsumer.hxx.
|
noexcept |
|
inline |
Definition at line 64 of file SharedPipeConsumer.hxx.
|
inline |
Definition at line 59 of file SharedPipeConsumer.hxx.
|
noexcept |
|
inline |
Definition at line 70 of file SharedPipeConsumer.hxx.
1.8.14