Instance: move GlobalEvents::Monitor to Partition

All remaining events are specific to the Partition.
This commit is contained in:
Max Kellermann
2016-03-10 22:47:47 +01:00
parent e2bc92d128
commit 483daa5882
4 changed files with 12 additions and 10 deletions

View File

@@ -23,7 +23,6 @@
#include "check.h"
#include "event/Loop.hxx"
#include "event/MaskMonitor.hxx"
#include "GlobalEvents.hxx"
#include "Compiler.h"
#ifdef ENABLE_NEIGHBOR_PLUGINS
@@ -66,8 +65,6 @@ struct Instance final
public NeighborListener
#endif
{
GlobalEvents::Monitor global_events;
CallbackMaskMonitor<Instance> idle_monitor;
#ifdef ENABLE_NEIGHBOR_PLUGINS
@@ -93,8 +90,7 @@ struct Instance final
StateFile *state_file;
Instance()
:global_events(event_loop),
idle_monitor(event_loop, *this, &Instance::OnIdle) {}
:idle_monitor(event_loop, *this, &Instance::OnIdle) {}
/**
* Initiate shutdown. Wrapper for EventLoop::Break().