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/visit_archive.cxx | |
parent | 115af4f5650f0c48a16765184050b509be7876b0 (diff) |
test/*: use class EventThread instead of ScopeIOThread
Diffstat (limited to 'test/visit_archive.cxx')
-rw-r--r-- | test/visit_archive.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/visit_archive.cxx b/test/visit_archive.cxx index c0668290a..c16d8e5e9 100644 --- a/test/visit_archive.cxx +++ b/test/visit_archive.cxx @@ -20,7 +20,7 @@ #include "config.h" #include "tag/Tag.hxx" #include "config/ConfigGlobal.hxx" -#include "ScopeIOThread.hxx" +#include "event/Thread.hxx" #include "input/Init.hxx" #include "archive/ArchiveList.hxx" #include "archive/ArchivePlugin.hxx" @@ -36,15 +36,16 @@ #include <stdio.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() { |