diff options
author | Max Kellermann <max@duempel.org> | 2014-10-07 20:02:13 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-10-07 20:02:13 +0200 |
commit | 1aac0b10c9499db77cbe39e43a0abc8cccc72079 (patch) | |
tree | 4a8fa128ac33a33a7223dd53e397547b086f6fff /test/visit_archive.cxx | |
parent | e5ff85b63c0ef342b11cb1ac5b5808091f51b667 (diff) | |
download | mpd-1aac0b10c9499db77cbe39e43a0abc8cccc72079.tar.gz mpd-1aac0b10c9499db77cbe39e43a0abc8cccc72079.tar.xz mpd-1aac0b10c9499db77cbe39e43a0abc8cccc72079.zip |
test/run_input, ...: add struct ScopeIOThread
Auto-stop the IO thread in all error handlers.
Diffstat (limited to 'test/visit_archive.cxx')
-rw-r--r-- | test/visit_archive.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/visit_archive.cxx b/test/visit_archive.cxx index d4854d8f1..f5dba5c8e 100644 --- a/test/visit_archive.cxx +++ b/test/visit_archive.cxx @@ -21,7 +21,7 @@ #include "stdbin.h" #include "tag/Tag.hxx" #include "config/ConfigGlobal.hxx" -#include "IOThread.hxx" +#include "ScopeIOThread.hxx" #include "input/Init.hxx" #include "archive/ArchiveList.hxx" #include "archive/ArchivePlugin.hxx" @@ -65,8 +65,7 @@ main(int argc, char **argv) config_global_init(); - io_thread_init(); - io_thread_start(); + const ScopeIOThread io_thread; archive_plugin_init_all(); @@ -101,8 +100,6 @@ main(int argc, char **argv) archive_plugin_deinit_all(); - io_thread_deinit(); - config_global_finish(); return result; |