diff options
author | Max Kellermann <max@duempel.org> | 2016-03-05 20:14:12 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2016-03-05 20:23:30 +0100 |
commit | 0e87ce4680df5cc66225b7a20f1c09938ae885cd (patch) | |
tree | 26cf71b27ac26dccdf862bc10e86a26a77c65c9d /src/Idle.cxx | |
parent | b4d594eeff22d112d224341b40db2893589a63df (diff) |
GlobalEvents: expose the internal class
Move the GlobalEvents::Monitor instance into class Instance.
Eliminate all global variables.
Diffstat (limited to 'src/Idle.cxx')
-rw-r--r-- | src/Idle.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Idle.cxx b/src/Idle.cxx index e1e71d3a9..d0f43a3d7 100644 --- a/src/Idle.cxx +++ b/src/Idle.cxx @@ -24,7 +24,8 @@ #include "config.h" #include "Idle.hxx" -#include "GlobalEvents.hxx" +#include "Main.hxx" +#include "Instance.hxx" #include "util/ASCII.hxx" #include <atomic> @@ -58,7 +59,7 @@ idle_add(unsigned flags) unsigned old_flags = idle_flags.fetch_or(flags); if ((old_flags & flags) != flags) - GlobalEvents::Emit(GlobalEvents::IDLE); + instance->global_events.Emit(GlobalEvents::IDLE); } unsigned |