input/thread: un-inline the constructor

This commit is contained in:
Max Kellermann 2017-09-21 21:55:24 +02:00
parent c8a2a557db
commit bc93c7a1fc
2 changed files with 12 additions and 5 deletions

View File

@ -26,6 +26,17 @@
#include <assert.h>
#include <string.h>
ThreadInputStream::ThreadInputStream(const char *_plugin,
const char *_uri,
Mutex &_mutex, Cond &_cond,
size_t _buffer_size)
:InputStream(_uri, _mutex, _cond),
plugin(_plugin),
thread(BIND_THIS_METHOD(ThreadFunc)),
buffer_size(_buffer_size)
{
}
ThreadInputStream::~ThreadInputStream()
{
{

View File

@ -70,11 +70,7 @@ class ThreadInputStream : public InputStream {
public:
ThreadInputStream(const char *_plugin,
const char *_uri, Mutex &_mutex, Cond &_cond,
size_t _buffer_size)
:InputStream(_uri, _mutex, _cond),
plugin(_plugin),
thread(BIND_THIS_METHOD(ThreadFunc)),
buffer_size(_buffer_size) {}
size_t _buffer_size);
virtual ~ThreadInputStream();