Mercurial > hg > svcore
comparison transform/TransformFactory.h @ 477:e0784311a103
* Start thread to populate uninstalled transforms only on request
(so runner doesn't have to have it)
author | Chris Cannam |
---|---|
date | Tue, 11 Nov 2008 09:41:45 +0000 |
parents | a70dcfed59c1 |
children | f933062a7f80 |
comparison
equal
deleted
inserted
replaced
476:acddcc3cca36 | 477:e0784311a103 |
---|---|
38 TransformFactory(); | 38 TransformFactory(); |
39 virtual ~TransformFactory(); | 39 virtual ~TransformFactory(); |
40 | 40 |
41 static TransformFactory *getInstance(); | 41 static TransformFactory *getInstance(); |
42 | 42 |
43 /** | |
44 * TransformFactory has a background thread that can populate | |
45 * uninstalled transforms from network RDF resources. It is not | |
46 * started by default, but it's a good idea to start it when the | |
47 * program starts up, if the uninstalled transforms may be of use | |
48 * later; otherwise there will be a bottleneck the first time | |
49 * they're requested. | |
50 * | |
51 * If this thread is not already running, start it now. | |
52 */ | |
53 void startPopulationThread(); | |
54 | |
43 TransformList getAllTransformDescriptions(); | 55 TransformList getAllTransformDescriptions(); |
44 TransformDescription getTransformDescription(TransformId id); | 56 TransformDescription getTransformDescription(TransformId id); |
45 | 57 |
46 TransformList getUninstalledTransformDescriptions(); | 58 TransformList getUninstalledTransformDescriptions(); |
47 TransformDescription getUninstalledTransformDescription(TransformId id); | 59 TransformDescription getUninstalledTransformDescription(TransformId id); |
210 m_factory->populateUninstalledTransforms(); | 222 m_factory->populateUninstalledTransforms(); |
211 } | 223 } |
212 TransformFactory *m_factory; | 224 TransformFactory *m_factory; |
213 }; | 225 }; |
214 | 226 |
227 UninstalledTransformsPopulateThread *m_thread; | |
228 | |
215 static TransformFactory *m_instance; | 229 static TransformFactory *m_instance; |
216 }; | 230 }; |
217 | 231 |
218 | 232 |
219 #endif | 233 #endif |