diff options
author | Max Kellermann <max@duempel.org> | 2016-03-05 20:17:47 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2016-03-05 20:20:12 +0100 |
commit | b4d594eeff22d112d224341b40db2893589a63df (patch) | |
tree | 22dd7269bdf72c43e63ad2398241dd76f051da91 /src/Instance.hxx | |
parent | ce09379baea3e8996078790a461f97b6c9d13c38 (diff) |
Instance: embed EventLoop, no pointer
Diffstat (limited to 'src/Instance.hxx')
-rw-r--r-- | src/Instance.hxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Instance.hxx b/src/Instance.hxx index 11de979a7..fcb087d08 100644 --- a/src/Instance.hxx +++ b/src/Instance.hxx @@ -21,6 +21,7 @@ #define MPD_INSTANCE_HXX #include "check.h" +#include "event/Loop.hxx" #include "Compiler.h" #ifdef ENABLE_NEIGHBOR_PLUGINS @@ -54,7 +55,7 @@ struct Instance final public NeighborListener #endif { - EventLoop *event_loop; + EventLoop event_loop; #ifdef ENABLE_NEIGHBOR_PLUGINS NeighborGlue *neighbors; @@ -79,7 +80,9 @@ struct Instance final /** * Initiate shutdown. Wrapper for EventLoop::Break(). */ - void Shutdown(); + void Shutdown() { + event_loop.Break(); + } #ifdef ENABLE_DATABASE /** |