diff options
author | Max Kellermann <max@musicpd.org> | 2017-02-10 22:14:07 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-02-10 22:25:01 +0100 |
commit | d1456ae039465dce44516624c1d44ee02b9f7613 (patch) | |
tree | ace78ac87758adb027ce86ee83029aa9cbaa190a /test/run_input.cxx | |
parent | 115af4f5650f0c48a16765184050b509be7876b0 (diff) |
test/*: use class EventThread instead of ScopeIOThread
Diffstat (limited to 'test/run_input.cxx')
-rw-r--r-- | test/run_input.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/run_input.cxx b/test/run_input.cxx index 125e909c6..d7bf58824 100644 --- a/test/run_input.cxx +++ b/test/run_input.cxx @@ -23,7 +23,7 @@ #include "config/ConfigGlobal.hxx" #include "input/InputStream.hxx" #include "input/Init.hxx" -#include "ScopeIOThread.hxx" +#include "event/Thread.hxx" #include "thread/Cond.hxx" #include "Log.hxx" #include "fs/io/BufferedOutputStream.hxx" @@ -39,15 +39,16 @@ #include <stdlib.h> class GlobalInit { - const ScopeIOThread io_thread; + EventThread io_thread; public: GlobalInit() { + io_thread.Start(); config_global_init(); #ifdef ENABLE_ARCHIVE archive_plugin_init_all(); #endif - input_stream_global_init(io_thread_get()); + input_stream_global_init(io_thread.GetEventLoop()); } ~GlobalInit() { |