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

@@ -22,6 +22,7 @@
#include "check.h"
#include "event/Loop.hxx"
#include "event/Thread.hxx"
#include "event/MaskMonitor.hxx"
#include "Compiler.h"
@@ -64,6 +65,8 @@ struct Instance final
public NeighborListener
#endif
{
EventThread io_thread;
MaskMonitor idle_monitor;
#ifdef ENABLE_NEIGHBOR_PLUGINS