From bc93c7a1fc54ebf49641e24da9eec121ae593c2b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 21 Sep 2017 21:55:24 +0200 Subject: [PATCH] input/thread: un-inline the constructor --- src/input/ThreadInputStream.cxx | 11 +++++++++++ src/input/ThreadInputStream.hxx | 6 +----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/input/ThreadInputStream.cxx b/src/input/ThreadInputStream.cxx index 36f77d557..231cb5cd9 100644 --- a/src/input/ThreadInputStream.cxx +++ b/src/input/ThreadInputStream.cxx @@ -26,6 +26,17 @@ #include #include +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() { { diff --git a/src/input/ThreadInputStream.hxx b/src/input/ThreadInputStream.hxx index 046e0821c..70e8777ba 100644 --- a/src/input/ThreadInputStream.hxx +++ b/src/input/ThreadInputStream.hxx @@ -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();