Partition: add a local idle_monitor

Make idle events per-partition, but leave Instance::EmitIdle() and its
underlying idle_monitor which broadcasts idle events to all
partitions.
This commit is contained in:
Max Kellermann
2020-01-20 13:28:58 +01:00
parent 879bafb837
commit 49309b419f
6 changed files with 32 additions and 26 deletions

View File

@@ -34,12 +34,3 @@ ClientList::Remove(Client &client) noexcept
list.erase(list.iterator_to(client));
}
void
ClientList::IdleAdd(unsigned flags) noexcept
{
assert(flags != 0);
for (auto &client : list)
client.IdleAdd(flags);
}

View File

@@ -56,8 +56,6 @@ public:
}
void Remove(Client &client) noexcept;
void IdleAdd(unsigned flags) noexcept;
};
#endif