20 #ifndef MPD_THREAD_INPUT_STREAM_HXX 21 #define MPD_THREAD_INPUT_STREAM_HXX 50 const char *
const plugin;
61 std::exception_ptr postponed_exception;
63 const size_t buffer_size;
78 const char *_uri,
Mutex &_mutex,
Cond &_cond,
83 buffer_size(_buffer_size) {}
89 assert(buffer ==
nullptr);
99 void Check() override final;
100 bool IsEOF() noexcept final;
102 size_t Read(
void *ptr,
size_t size) override final;
109 void Stop() noexcept;
#define BIND_THIS_METHOD(method)
Shortcut wrapper for BIND_METHOD() which assumes "*this" is the instance to be bound.
gcc_pure bool IsInside() const noexcept
Check if this thread is the current thread.