comparison transform/ModelTransformerFactory.cpp @ 878:a2689db084f4 tonioni

Add a callback for no models as well (so we know something has completed and can e.g. delete the handler)
author Chris Cannam
date Wed, 29 Jan 2014 17:32:08 +0000
parents b109b88bfa85
children 85879408f665 06579b8ffb7b
comparison
equal deleted inserted replaced
877:b109b88bfa85 878:a2689db084f4
278 278
279 if (m_handlers.find(transformer) != m_handlers.end()) { 279 if (m_handlers.find(transformer) != m_handlers.end()) {
280 if (transformer->willHaveAdditionalOutputModels()) { 280 if (transformer->willHaveAdditionalOutputModels()) {
281 vector<Model *> mm = transformer->detachAdditionalOutputModels(); 281 vector<Model *> mm = transformer->detachAdditionalOutputModels();
282 m_handlers[transformer]->moreModelsAvailable(mm); 282 m_handlers[transformer]->moreModelsAvailable(mm);
283 } else {
284 m_handlers[transformer]->noMoreModelsAvailable();
283 } 285 }
284 m_handlers.erase(transformer); 286 m_handlers.erase(transformer);
285 } 287 }
286 288
287 transformer->wait(); // unnecessary but reassuring 289 transformer->wait(); // unnecessary but reassuring