test/*: use class EventThread instead of ScopeIOThread
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user