summaryrefslogtreecommitdiff
path: root/src/lib/examine_content_job.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-11-15 23:41:22 +0000
committerCarl Hetherington <cth@carlh.net>2018-11-22 23:26:18 +0000
commit63bce67bd548f4aff98e2a1963e1fd77a6412a15 (patch)
tree44cb9fddd35817db51f79685a67b50050cddd56c /src/lib/examine_content_job.h
parent620b7761a33d2e3641cd911bfe58e0fbb928c888 (diff)
Speed up content discovery:
1. add all discovery jobs immediately rather than waiting for each one to finish (by polling) before starting the next. 2. replace polling with a condition in JobManager.
Diffstat (limited to 'src/lib/examine_content_job.h')
-rw-r--r--src/lib/examine_content_job.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/examine_content_job.h b/src/lib/examine_content_job.h
index 0f4da2457..424963726 100644
--- a/src/lib/examine_content_job.h
+++ b/src/lib/examine_content_job.h
@@ -32,6 +32,10 @@ public:
std::string json_name () const;
void run ();
+ boost::shared_ptr<Content> content () const {
+ return _content;
+ }
+
private:
boost::shared_ptr<Content> _content;
};