diff options
author | Max Kellermann <max@duempel.org> | 2013-08-07 19:38:10 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-08-07 19:38:10 +0200 |
commit | 977004c3508a366499ff80ff87ac3a84b4fdf9eb (patch) | |
tree | 8aa2b14135a023454da1ea018d553471a8304a53 /src/GlobalEvents.cxx | |
parent | fdc7d13ad16184c20d2bd37063cbb4d9957a4461 (diff) |
event/DeferredMonitor: use EventLoop::AddIdle()
Diffstat (limited to 'src/GlobalEvents.cxx')
-rw-r--r-- | src/GlobalEvents.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/GlobalEvents.cxx b/src/GlobalEvents.cxx index ade745535..ed7697b1a 100644 --- a/src/GlobalEvents.cxx +++ b/src/GlobalEvents.cxx @@ -33,6 +33,9 @@ namespace GlobalEvents { class Monitor final : public DeferredMonitor { + public: + Monitor(EventLoop &_loop):DeferredMonitor(_loop) {} + protected: virtual void Run() override; }; @@ -67,9 +70,9 @@ GlobalEvents::Monitor::Run() } void -GlobalEvents::Initialize() +GlobalEvents::Initialize(EventLoop &loop) { - monitor.Construct(); + monitor.Construct(loop); } void |