Mercurial > hg > svcore
changeset 479:f933062a7f80
* Make scale bar more accurate (if no more helpful) in log scaled colour 3d plot
author | Chris Cannam |
---|---|
date | Wed, 12 Nov 2008 16:39:29 +0000 |
parents | 1405f4a2caf3 |
children | 3ffce691c9bf |
files | transform/TransformFactory.cpp transform/TransformFactory.h |
diffstat | 2 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/transform/TransformFactory.cpp Tue Nov 11 13:54:47 2008 +0000 +++ b/transform/TransformFactory.cpp Wed Nov 12 16:39:29 2008 +0000 @@ -109,6 +109,7 @@ TransformList TransformFactory::getUninstalledTransformDescriptions() { + m_populatingSlowly = false; populateUninstalledTransforms(); std::set<TransformDescription> dset; @@ -131,6 +132,7 @@ TransformDescription TransformFactory::getUninstalledTransformDescription(TransformId id) { + m_populatingSlowly = false; populateUninstalledTransforms(); if (m_uninstalledTransforms.find(id) == m_uninstalledTransforms.end()) { @@ -157,6 +159,7 @@ if (!m_uninstalledTransformsPopulated) { m_uninstalledTransformsMutex.unlock(); + m_populatingSlowly = false; populateUninstalledTransforms(); m_uninstalledTransformsMutex.lock(); } @@ -554,8 +557,6 @@ "TransformFactory::populateUninstalledTransforms"); if (m_uninstalledTransformsPopulated) return; -// ("http://www.vamp-plugins.org/rdf/plugins/vamp-example-plugins"); - PluginRDFIndexer::getInstance()->indexConfiguredURLs(); //!!! This will be amazingly slow
--- a/transform/TransformFactory.h Tue Nov 11 13:54:47 2008 +0000 +++ b/transform/TransformFactory.h Wed Nov 12 16:39:29 2008 +0000 @@ -218,6 +218,7 @@ m_factory(factory) { } virtual void run() { + m_factory->m_populatingSlowly = true; sleep(2); m_factory->populateUninstalledTransforms(); } @@ -225,6 +226,7 @@ }; UninstalledTransformsPopulateThread *m_thread; + bool m_populatingSlowly; static TransformFactory *m_instance; };