Linkgraph: Changes to job scheduling algorithm.

This is to improve responsiveness of link graph updates, whilst
avoiding being blocked waiting for updates to complete.
Previously, large numbers of cheap jobs resulted in poor responsiveness
as it took a long time for jobs to cycle round.

Add 'linkgraph' debug category.
This commit is contained in:
Jonathan G Rennison
2016-10-31 00:21:01 +00:00
parent 7f10d83a4a
commit 84e61b690a
7 changed files with 82 additions and 24 deletions

View File

@@ -13,6 +13,7 @@
#define LINKGRAPHSCHEDULE_H
#include "linkgraph.h"
#include <memory>
class LinkGraphJob;
@@ -40,7 +41,7 @@ private:
LinkGraphSchedule();
~LinkGraphSchedule();
typedef std::list<LinkGraph *> GraphList;
typedef std::list<LinkGraphJob *> JobList;
typedef std::list<std::unique_ptr<LinkGraphJob>> JobList;
friend const SaveLoad *GetLinkGraphScheduleDesc();
protected: