From b24a5e06620b41546c75bc693277857feb1fa506 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 5 Mar 2016 19:16:39 +0100 Subject: Partition: add method EmitIdle() Prepare for moving idle events to class Partition. Right now, it's just a wrapper for idle_add(). --- src/Instance.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/Instance.cxx') diff --git a/src/Instance.cxx b/src/Instance.cxx index f65eca42d..0122a9732 100644 --- a/src/Instance.cxx +++ b/src/Instance.cxx @@ -77,7 +77,6 @@ Instance::OnDatabaseModified() stats_invalidate(); partition->DatabaseModified(*database); - idle_add(IDLE_DATABASE); } void @@ -102,13 +101,13 @@ Instance::OnDatabaseSongRemoved(const LightSong &song) void Instance::FoundNeighbor(gcc_unused const NeighborInfo &info) { - idle_add(IDLE_NEIGHBOR); + partition->EmitIdle(IDLE_NEIGHBOR); } void Instance::LostNeighbor(gcc_unused const NeighborInfo &info) { - idle_add(IDLE_NEIGHBOR); + partition->EmitIdle(IDLE_NEIGHBOR); } #endif -- cgit v1.2.3