|
MPD
0.20.6
|
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 () |
| void | Consume (gcc_unused const MusicChunk &_chunk) |
| gcc_pure bool | IsConsumed (const MusicChunk &_chunk) const |
| void | ClearTail (gcc_unused const MusicChunk &_chunk) |
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.
|
inline |
Definition at line 90 of file SharedPipeConsumer.hxx.
|
inline |
Definition at line 80 of file SharedPipeConsumer.hxx.
| const MusicChunk* SharedPipeConsumer::Get | ( | ) |
|
inline |
Definition at line 64 of file SharedPipeConsumer.hxx.
|
inline |
Definition at line 59 of file SharedPipeConsumer.hxx.
| gcc_pure bool SharedPipeConsumer::IsConsumed | ( | const MusicChunk & | _chunk | ) | const |
|
inline |
Definition at line 70 of file SharedPipeConsumer.hxx.
1.8.9.1