IOThread: move EventThread instance into struct Instance

Eliminate global variables.
This commit is contained in:
Max Kellermann
2017-02-10 21:46:07 +01:00
parent d1456ae039
commit 5e081de14a
8 changed files with 20 additions and 29 deletions

View File

@@ -51,11 +51,3 @@ io_thread_deinit(void)
delete io_thread;
io_thread = nullptr;
}
EventLoop &
io_thread_get()
{
assert(io_thread != nullptr);
return io_thread->GetEventLoop();
}