comparison plugin/FeatureExtractionPluginFactory.cpp @ 299:576be0d0d218

* Merge transform directory from sv-match-alignment branch (the previous comment included notes for this stuff, but I missed it in the actual merge) * Fix crash when a transform fails to create an output model and the thread that created the transform then deletes its input model thinking it's no longer needed, even though the transform run thread is still using it -- fix is to wait() on the transform before returning the null output model
author Chris Cannam
date Fri, 28 Sep 2007 16:15:06 +0000
parents 57d7889f626c
children 9203b82a8c53
comparison
equal deleted inserted replaced
298:57d7889f626c 299:576be0d0d218
375 void 375 void
376 FeatureExtractionPluginFactory::pluginDeleted(Vamp::Plugin *plugin) 376 FeatureExtractionPluginFactory::pluginDeleted(Vamp::Plugin *plugin)
377 { 377 {
378 void *handle = m_handleMap[plugin]; 378 void *handle = m_handleMap[plugin];
379 if (handle) { 379 if (handle) {
380 std::cerr << "unloading library " << handle << " for plugin " << plugin << std::endl; 380 // std::cerr << "unloading library " << handle << " for plugin " << plugin << std::endl;
381 DLCLOSE(handle); 381 DLCLOSE(handle);
382 } 382 }
383 m_handleMap.erase(plugin); 383 m_handleMap.erase(plugin);
384 } 384 }
385 385